Commit 8f5252cd authored by Jason Madden's avatar Jason Madden

ImportError and NameError are not the same thing.

parent a95dc099
...@@ -154,7 +154,7 @@ def _patch_existing_locks(threading): ...@@ -154,7 +154,7 @@ def _patch_existing_locks(threading):
rlock_type = type(threading.RLock()) rlock_type = type(threading.RLock())
try: try:
import importlib._bootstrap import importlib._bootstrap
except NameError: except ImportError:
class _ModuleLock(object): class _ModuleLock(object):
pass pass
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment