diff options
| author | Tavis Rudd <tavis@damnsimple.com> | 2010-02-24 22:07:26 -0800 |
|---|---|---|
| committer | Tavis Rudd <tavis@damnsimple.com> | 2010-02-24 22:07:26 -0800 |
| commit | a7eaa4b701d0480db876bd91bb673a00e3e25a3f (patch) | |
| tree | 3c0484418ca909a6ee67cfbcc93900af15d29574 /eventlet/support | |
| parent | c1f861919d9ae88e57b47c5a342115c1b0e16008 (diff) | |
| download | eventlet-a7eaa4b701d0480db876bd91bb673a00e3e25a3f.tar.gz | |
fix some unused vars that pyflakes complained about
Diffstat (limited to 'eventlet/support')
| -rw-r--r-- | eventlet/support/stacklesss.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/eventlet/support/stacklesss.py b/eventlet/support/stacklesss.py index 8961204..2531438 100644 --- a/eventlet/support/stacklesss.py +++ b/eventlet/support/stacklesss.py @@ -30,7 +30,7 @@ class FirstSwitch(object): gr.t = t tasklet_to_greenlet[t] = gr t.setup(*args, **kw) - result = t.run() + t.run() class greenlet(object): @@ -75,10 +75,10 @@ def emulate(): module.getcurrent = getcurrent module.GreenletExit = GreenletExit - caller = t = stackless.getcurrent() - tasklet_to_greenlet[t] = None + caller = stackless.getcurrent() + tasklet_to_greenlet[caller] = None main_coro = greenlet() - tasklet_to_greenlet[t] = main_coro - main_coro.t = t + tasklet_to_greenlet[caller] = main_coro + main_coro.t = caller del main_coro.switch ## It's already running coro_args[main_coro] = None |
