Commit 15e374f6 authored by Denis Bilenko's avatar Denis Bilenko

rawgreenlet: improve readability

parent 91cf0b6a
......@@ -39,14 +39,14 @@ def kill(greenlet, exception=GreenletExit, block=False, polling_period=0.2):
def _killall(greenlets, exception, waiter):
diehards = []
for g in greenlets:
if not g.dead:
for greenlet in greenlets:
if not greenlet.dead:
try:
g.throw(exception)
greenlet.throw(exception)
except:
traceback.print_exc()
if not g.dead:
diehards.append(g)
if not greenlet.dead:
diehards.append(greenlet)
waiter.switch(diehards)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment