mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 18:06:46 +00:00
That was all nonsense. Throw it out.
This commit is contained in:
parent
e55ee7d044
commit
19f06809e2
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user