diff options
Diffstat (limited to 'eventlet/patcher.py')
| -rw-r--r-- | eventlet/patcher.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/eventlet/patcher.py b/eventlet/patcher.py index 0d5cc65..1164848 100644 --- a/eventlet/patcher.py +++ b/eventlet/patcher.py @@ -283,6 +283,12 @@ def monkey_patch(**on): finally: imp.release_lock() + if sys.version_info >= (3, 3): + import importlib._bootstrap + thread = original('_thread') + # importlib must use real thread locks, not eventlet.Semaphore + importlib._bootstrap._thread = thread + def is_monkey_patched(module): """Returns True if the given module is monkeypatched currently, False if |
