[pypy-svn] r10590 - pypy/dist/pypy/annotation
pedronis at codespeak.net
pedronis at codespeak.net
Wed Apr 13 20:02:01 CEST 2005
Author: pedronis
Date: Wed Apr 13 20:02:01 2005
New Revision: 10590
Modified:
pypy/dist/pypy/annotation/builtin.py
Log:
annotation for sys.getdefaultenconding
Modified: pypy/dist/pypy/annotation/builtin.py
==============================================================================
--- pypy/dist/pypy/annotation/builtin.py (original)
+++ pypy/dist/pypy/annotation/builtin.py Wed Apr 13 20:02:01 2005
@@ -140,6 +140,9 @@
def count(s_obj):
return SomeInteger()
+def conf():
+ return SomeString()
+
def math_fmod(x, y):
return SomeObject()
@@ -172,6 +175,9 @@
# this one is needed otherwise when annotating assert in a test we may try to annotate
# py.test AssertionError.__init__ .
BUILTIN_ANALYZERS[AssertionError.__init__.im_func] = exception_init
-BUILTIN_ANALYZERS[sys.getrefcount] = count
BUILTIN_ANALYZERS[math.fmod] = math_fmod
BUILTIN_ANALYZERS[math.floor] = math_floor
+
+BUILTIN_ANALYZERS[sys.getrefcount] = count
+BUILTIN_ANALYZERS[sys.getdefaultencoding] = conf
+
More information about the Pypy-commit
mailing list