fixed libev to support python2.4 just to find out that pyev needs 2.5.1 at least

This commit is contained in:
Denis Bilenko
2009-01-13 01:10:53 +06:00
parent f5654b311c
commit 3b210e1769

View File

@@ -119,20 +119,22 @@ class Hub(hub.BaseHub):
def timer_finished(self, timer):
try:
timer.impltimer.stop()
del timer.impltimer
# XXX might this raise other errors?
except (AttributeError, TypeError):
pass
try:
timer.impltimer.stop()
del timer.impltimer
# XXX might this raise other errors?
except (AttributeError, TypeError):
pass
finally:
super(Hub, self).timer_finished(timer)
def timer_canceled(self, timer):
""" Cancels the underlying libevent timer. """
try:
timer.impltimer.stop()
del timer.impltimer
except (AttributeError, TypeError):
pass
try:
timer.impltimer.stop()
del timer.impltimer
except (AttributeError, TypeError):
pass
finally:
super(Hub, self).timer_canceled(timer)