summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eventlet/patcher.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/eventlet/patcher.py b/eventlet/patcher.py
index a578637..030fa54 100644
--- a/eventlet/patcher.py
+++ b/eventlet/patcher.py
@@ -313,9 +313,9 @@ def monkey_patch(**on):
if hasattr(orig_mod, attr_name):
delattr(orig_mod, attr_name)
- if name == 'threading' and sys.version_info >= (3, 7):
+ _os = original('os')
+ if name == 'threading' and hasattr(_os, 'register_at_fork'):
def fix_threading_active(
- _os=original('os'),
_global_dict=original('threading').current_thread.__globals__,
_patched=orig_mod
):