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

fijal at codespeak.net fijal at codespeak.net
Tue Apr 13 05:47:25 CEST 2010


Author: fijal
Date: Tue Apr 13 05:47:24 2010
New Revision: 73711

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/api.py
Log:
try differently (an annotator bug workaround)


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	Tue Apr 13 05:47:24 2010
@@ -405,9 +405,9 @@
                     add_borrowed_object(space, retval)
             elif callable.api_func.restype is not lltype.Void:
                 retval = rffi.cast(callable.api_func.restype, result)
-        except NullPointerException, e:
+        except NullPointerException:
             print "Container not registered by %s" % callable.__name__
-        except:
+        except Exception:
             print "Fatal exception encountered"
         rffi.stackcounter.stacks_counter -= 1
         return retval



More information about the Pypy-commit mailing list