Commit df7d6282 authored by Denis Bilenko's avatar Denis Bilenko

remove unnecessary code (pulled from trunk)

parent be5b95c6
......@@ -227,11 +227,9 @@ cdef class event:
def add(self, timeout=None):
"""Add event to be executed after an optional *timeout* - number of seconds
after which the event will be executed."""
global errno
cdef timeval tv
cdef double c_timeout
cdef int result
errno = 0 # event_add sometime does not set errno
if timeout is None:
result = event_add(&self.ev, NULL)
else:
......
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