[pypy-svn] r73477 - pypy/branch/cpython-extension/pypy/module/cpyext

xoraxax at codespeak.net xoraxax at codespeak.net
Wed Apr 7 00:58:05 CEST 2010


Author: xoraxax
Date: Wed Apr  7 00:58:04 2010
New Revision: 73477

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/api.py
Log:
Simplify the nonetype fishing.

Modified: pypy/branch/cpython-extension/pypy/module/cpyext/api.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/api.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/api.py	Wed Apr  7 00:58:04 2010
@@ -26,7 +26,6 @@
 # CPython 2.4 compatibility
 from py.builtin import BaseException
 from pypy.tool.sourcetools import func_with_new_name
-from pypy.objspace.std.noneobject import W_NoneObject
 
 DEBUG_WRAPPER = False
 
@@ -246,7 +245,7 @@
         "List": "space.w_list",
         "Unicode": "space.w_unicode",
         'Bool': 'space.w_bool',
-        'None': 'space.gettypeobject(W_NoneObject.typedef)',
+        'None': 'space.type(space.w_None)',
         }.items():
     GLOBALS['Py%s_Type#' % (cpyname, )] = ('PyTypeObject*', pypyexpr)
 



More information about the Pypy-commit mailing list