[pypy-commit] pypy release-2.1.x: Kill this now-not-useful variable
arigo
noreply at buildbot.pypy.org
Sat Jul 20 14:10:22 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch: release-2.1.x
Changeset: r65515:ebaa755f76fa
Date: 2013-07-19 20:53 +0200
http://bitbucket.org/pypy/pypy/changeset/ebaa755f76fa/
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)
More information about the pypy-commit
mailing list