Commits

Armin Rigo  committed ebaa755

Kill this now-not-useful variable

  • Participants
  • Parent commits 02f3dda
  • Branches release-2.1.x

Comments (0)

Files changed (1)

File lib_pypy/greenlet.py

 
     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
             # 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:
                     baseargs = (((e,), {}),)
                 except:
                     baseargs = sys.exc_info()[:2] + baseargs[2:]
-                    convert_greenletexit = False
         #
         try:
             unbound_method = getattr(_continulet, methodname)