Commit e02a2de6 authored by Eddi Linder's avatar Eddi Linder

Added pass_events arg to pypy io version

parent 7f738313
...@@ -1012,6 +1012,11 @@ class io(watcher): ...@@ -1012,6 +1012,11 @@ class io(watcher):
raise ValueError('illegal event mask: %r' % events) raise ValueError('illegal event mask: %r' % events)
watcher.__init__(self, loop, ref=ref, priority=priority, args=(fd, events)) watcher.__init__(self, loop, ref=ref, priority=priority, args=(fd, events))
def start(self, callback, pass_events=False, *args):
if pass_events:
args = (GEVENT_CORE_EVENTS, ) + args
super(io, self).start(callback, *args)
def _get_fd(self): def _get_fd(self):
return libev.vfd_get(self._watcher.fd) return libev.vfd_get(self._watcher.fd)
......
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