From 7b44deccb6574443194a3b77d1e6185fd6a4bbc2 Mon Sep 17 00:00:00 2001 From: Rotem Yaari Date: Thu, 12 Apr 2018 22:17:25 +0300 Subject: [PATCH] Fix wrong imports from gevent (closes #259) --- logbook/concurrency.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/logbook/concurrency.py b/logbook/concurrency.py index 2f15f438..bfb58695 100644 --- a/logbook/concurrency.py +++ b/logbook/concurrency.py @@ -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