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

afa at codespeak.net afa at codespeak.net
Thu May 6 01:47:39 CEST 2010


Author: afa
Date: Thu May  6 01:47:37 2010
New Revision: 74396

Modified:
   pypy/trunk/pypy/module/cpyext/api.py
Log:
Better fix I think


Modified: pypy/trunk/pypy/module/cpyext/api.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/api.py	(original)
+++ pypy/trunk/pypy/module/cpyext/api.py	Thu May  6 01:47:37 2010
@@ -450,7 +450,7 @@
             elif callable.api_func.restype is PyObject:
                 if result is None:
                     retval = lltype.nullptr(PyObject.TO)
-                if isinstance(result, BorrowedPair):
+                elif isinstance(result, BorrowedPair):
                     retval = result.get_ref(space)
                 elif not rffi._isllptr(result):
                     retval = make_ref(space, result)



More information about the Pypy-commit mailing list