diff options
author | Brett Cannon <brett@python.org> | 2013-06-13 20:57:26 -0400 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-06-13 20:57:26 -0400 |
commit | dfd87ef593fcae1f252092348479d456375552fc (patch) | |
tree | 9b2837665fa5a4027ac58d40eb6675d4249a4a4d /Lib/_strptime.py | |
parent | 87407f5d891b20af9b7ef9ae0cb728210784581f (diff) | |
download | cpython-dfd87ef593fcae1f252092348479d456375552fc.tar.gz |
Issue #18200: Update the stdlib (except tests) to use
ModuleNotFoundError.
Diffstat (limited to 'Lib/_strptime.py')
-rw-r--r-- | Lib/_strptime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_strptime.py b/Lib/_strptime.py index 7520919806..7724d87ddc 100644 --- a/Lib/_strptime.py +++ b/Lib/_strptime.py @@ -21,7 +21,7 @@ from datetime import (date as datetime_date, timezone as datetime_timezone) try: from _thread import allocate_lock as _thread_allocate_lock -except ImportError: +except ModuleNotFoundError: from _dummy_thread import allocate_lock as _thread_allocate_lock __all__ = [] |