Commit 425d96c9 authored by Denis Bilenko's avatar Denis Bilenko

Merge pull request #254 from saghul/fixup

A couple of small fixes removing unneeded variables
parents a847d79d bda54012
...@@ -81,7 +81,6 @@ class Greenlet(greenlet): ...@@ -81,7 +81,6 @@ class Greenlet(greenlet):
self._links = deque() self._links = deque()
self.value = None self.value = None
self._exception = _NONE self._exception = _NONE
loop = hub.loop
self._notifier = None self._notifier = None
self._start_event = None self._start_event = None
......
...@@ -47,7 +47,6 @@ def select(rlist, wlist, xlist, timeout=None): ...@@ -47,7 +47,6 @@ def select(rlist, wlist, xlist, timeout=None):
Note: *xlist* is ignored. Note: *xlist* is ignored.
""" """
watchers = [] watchers = []
timeout = Timeout.start_new(timeout)
loop = get_hub().loop loop = get_hub().loop
io = loop.io io = loop.io
MAXPRI = loop.MAXPRI MAXPRI = loop.MAXPRI
...@@ -72,4 +71,3 @@ def select(rlist, wlist, xlist, timeout=None): ...@@ -72,4 +71,3 @@ def select(rlist, wlist, xlist, timeout=None):
finally: finally:
for watcher in watchers: for watcher in watchers:
watcher.stop() watcher.stop()
timeout.cancel()
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