Skip to content

Commit

Permalink
refactor: remove unecessary import guard for gevent.lock
Browse files Browse the repository at this point in the history
The locks have been moved from `gevent.coros` to `gevent.lock`
since version 1.2 ([see changelog](https://www.gevent.org/changelog_1_2.html#a1-oct-27-2016))
  • Loading branch information
a-ungurianu committed Nov 16, 2022
1 parent e38b5c5 commit 74ecc0f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions kazoo/handlers/gevent.py
Expand Up @@ -14,10 +14,7 @@

from kazoo.handlers.utils import selector_select

try:
from gevent.lock import Semaphore, RLock
except ImportError:
from gevent.coros import Semaphore, RLock
from gevent.lock import Semaphore, RLock

from kazoo.handlers import utils

Expand Down

0 comments on commit 74ecc0f

Please sign in to comment.