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

afa at codespeak.net afa at codespeak.net
Thu May 6 01:26:17 CEST 2010


Author: afa
Date: Thu May  6 01:26:16 2010
New Revision: 74394

Modified:
   pypy/trunk/pypy/module/cpyext/api.py
Log:
Attempt to fix translation


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:26:16 2010
@@ -215,7 +215,9 @@
                             return None
                         else:
                             return api_function.error_value
-                    if isinstance(res, BorrowedPair):
+                    if res is None:
+                        return res
+                    elif isinstance(res, BorrowedPair):
                         return res.w_borrowed
                     else:
                         return res



More information about the Pypy-commit mailing list