Skip to content

Commit

Permalink
fix(core): Fix gevent 1.3b1+ timeout import
Browse files Browse the repository at this point in the history
gevent.event.Timeout is undocumented and will break when using gevent 1.3b1+.
Use gevent.Timeout as suggested in gevent docs.
  • Loading branch information
carsonip authored and jeffwidman committed May 11, 2018
1 parent 0905c47 commit 257b589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kazoo/handlers/gevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def __init__(self):
self._state_change = Semaphore()
self._workers = []

class timeout_exception(gevent.event.Timeout):
class timeout_exception(gevent.Timeout):
def __init__(self, msg):
gevent.event.Timeout.__init__(self, exception=msg)
gevent.Timeout.__init__(self, exception=msg)

def _create_greenlet_worker(self, queue):
def greenlet_worker():
Expand Down

0 comments on commit 257b589

Please sign in to comment.