[pypy-svn] r74385 - pypy/trunk/pypy/module/cpyext

afa at codespeak.net afa at codespeak.net
Wed May 5 20:41:10 CEST 2010


Author: afa
Date: Wed May  5 20:41:08 2010
New Revision: 74385

Modified:
   pypy/trunk/pypy/module/cpyext/typeobject.py
Log:
Fix translation


Modified: pypy/trunk/pypy/module/cpyext/typeobject.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/typeobject.py	(original)
+++ pypy/trunk/pypy/module/cpyext/typeobject.py	Wed May  5 20:41:08 2010
@@ -494,7 +494,7 @@
 @cpython_api([PyTypeObjectPtr], rffi.INT_real, error=-1)
 def PyType_Ready(space, pto):
     if pto.c_tp_flags & Py_TPFLAGS_READY:
-        return
+        return 0
     assert pto.c_tp_flags & Py_TPFLAGS_READYING == 0
     pto.c_tp_flags |= Py_TPFLAGS_READYING
     try:



More information about the Pypy-commit mailing list