Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r65486:0c1ca879c6b0
Date: 2013-07-19 20:53 +0200
http://bitbucket.org/pypy/pypy/changeset/0c1ca879c6b0/

Log:    Kill this now-not-useful variable

diff --git a/lib_pypy/greenlet.py b/lib_pypy/greenlet.py
--- a/lib_pypy/greenlet.py
+++ b/lib_pypy/greenlet.py
@@ -58,7 +58,6 @@
 
     def __switch(target, methodname, *baseargs):
         current = getcurrent()
-        convert_greenletexit = True
         #
         while not (target.__main or _continulet.is_pending(target)):
             # inlined __nonzero__ ^^^ in case it's overridden
@@ -78,7 +77,7 @@
             # will show that the program is caught in this loop here.)
             target = target.parent
             # convert a "raise GreenletExit" into "return GreenletExit"
-            if methodname == 'throw' and convert_greenletexit:
+            if methodname == 'throw':
                 try:
                     raise baseargs[0], baseargs[1]
                 except GreenletExit, e:
@@ -86,7 +85,6 @@
                     baseargs = (((e,), {}),)
                 except:
                     baseargs = sys.exc_info()[:2] + baseargs[2:]
-                    convert_greenletexit = False
         #
         try:
             unbound_method = getattr(_continulet, methodname)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to