Skip to content

Commit

Permalink
Fix wrong imports from gevent (closes #259)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmalloc committed Apr 12, 2018
1 parent 3564c76 commit 7b44dec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions logbook/concurrency.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def is_gevent_enabled():

if has_gevent:
from gevent.monkey import get_original as _get_original
Lock = _get_original('threading', 'Lock')
RLock = _get_original('threading', 'RLock')
get_ident = _get_original('threading', 'get_ident')
local = _get_original('threading', 'local')
ThreadLock = _get_original('threading', 'Lock')
ThreadRLock = _get_original('threading', 'RLock')
thread_get_ident = _get_original('threading', 'get_ident')
thread_local = _get_original('threading', 'local')

from gevent.thread import get_ident as greenlet_get_ident
from gevent.local import local as greenlet_local
Expand Down

0 comments on commit 7b44dec

Please sign in to comment.