That was all nonsense. Throw it out.

This commit is contained in:
Jean-Paul Calderone 2019-02-22 09:11:44 -05:00
parent e55ee7d044
commit 19f06809e2

View File

@ -81,7 +81,6 @@ def eliot_friendly_generator_function(original):
# decorated generator is running, it might be the stack for that
# generator. Not our business.
_the_generator_context.init_stack(gen)
try:
while True:
try:
# Whichever way we invoke the generator, we will do it
@ -119,11 +118,6 @@ def eliot_friendly_generator_function(original):
value_in = exc_info()
else:
ok = True
except GeneratorExit:
# Is this the right scope for handling this exception? Something
# to check on. Anyhow, if we get it, propagate it inward so the
# generator we're driving knows we're done with it.
gen.close()
return wrapper