Skip to content

Commit 257b589

Browse files
carsonipjeffwidman
authored andcommitted
fix(core): Fix gevent 1.3b1+ timeout import
gevent.event.Timeout is undocumented and will break when using gevent 1.3b1+. Use gevent.Timeout as suggested in gevent docs.
1 parent 0905c47 commit 257b589

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kazoo/handlers/gevent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ def __init__(self):
6060
self._state_change = Semaphore()
6161
self._workers = []
6262

63-
class timeout_exception(gevent.event.Timeout):
63+
class timeout_exception(gevent.Timeout):
6464
def __init__(self, msg):
65-
gevent.event.Timeout.__init__(self, exception=msg)
65+
gevent.Timeout.__init__(self, exception=msg)
6666

6767
def _create_greenlet_worker(self, queue):
6868
def greenlet_worker():

0 commit comments

Comments
 (0)