[pypy-svn] r57543 - pypy/branch/2.5-features/pypy/interpreter

bgola at codespeak.net bgola at codespeak.net
Thu Aug 21 13:41:56 CEST 2008


Author: bgola
Date: Thu Aug 21 13:41:55 2008
New Revision: 57543

Modified:
   pypy/branch/2.5-features/pypy/interpreter/generator.py
Log:
w_retval won't be space.None

Modified: pypy/branch/2.5-features/pypy/interpreter/generator.py
==============================================================================
--- pypy/branch/2.5-features/pypy/interpreter/generator.py	(original)
+++ pypy/branch/2.5-features/pypy/interpreter/generator.py	Thu Aug 21 13:41:55 2008
@@ -118,6 +118,6 @@
                 return space.w_None
             raise
         
-        if w_retval is not None or not space.is_w(w_retval, space.None):
+        if w_retval is not None:
             msg = "generator ignored GeneratorExit"
             raise OperationError(space.w_RuntimeError, space.wrap(msg))



More information about the Pypy-commit mailing list