Commit 99dc6b95 authored by Denis Bilenko's avatar Denis Bilenko

rename '_timer' to 'timer' in internal class select.SelectResult

parent 9af16f6f
...@@ -27,17 +27,17 @@ class SelectResult(object): ...@@ -27,17 +27,17 @@ class SelectResult(object):
self.read = [] self.read = []
self.write = [] self.write = []
self.event = Event() self.event = Event()
self._timer = None self.timer = None
def update(self, event, evtype): def update(self, event, evtype):
if evtype & core.EV_READ: if evtype & core.EV_READ:
self.read.append(event.arg) self.read.append(event.arg)
if self._timer is None: if self.timer is None:
self._timer = core.timer(0, self.event.set) self.timer = core.timer(0, self.event.set)
elif evtype & core.EV_WRITE: elif evtype & core.EV_WRITE:
self.write.append(event.arg) self.write.append(event.arg)
if self._timer is None: if self.timer is None:
self._timer = core.timer(0, self.event.set) self.timer = core.timer(0, self.event.set)
# using core.timer(0, ...) to let other active events call update() before Event.wait() returns # using core.timer(0, ...) to let other active events call update() before Event.wait() returns
......
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