[pypy-svn] r15125 - pypy/dist/pypy/rpython
pedronis at codespeak.net
pedronis at codespeak.net
Tue Jul 26 15:35:42 CEST 2005
Author: pedronis
Date: Tue Jul 26 15:35:41 2005
New Revision: 15125
Modified:
pypy/dist/pypy/rpython/rpbc.py
Log:
expand what is considered a builtin type
Modified: pypy/dist/pypy/rpython/rpbc.py
==============================================================================
--- pypy/dist/pypy/rpython/rpbc.py (original)
+++ pypy/dist/pypy/rpython/rpbc.py Tue Jul 26 15:35:41 2005
@@ -48,7 +48,7 @@
if x in userclasses:
# user classes
choice = ClassesPBCRepr
- elif type(x) is type and x.__module__ == '__builtin__':
+ elif type(x) is type and x.__module__ in sys.builtin_module_names:
# special case for built-in types, seen in faking
choice = getPyObjRepr
else:
More information about the Pypy-commit
mailing list