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):
rlock_type = type(threading.RLock())
try:
import importlib._bootstrap
except NameError:
except ImportError:
class _ModuleLock(object):
pass
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