diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-02-10 18:29:17 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-02-10 18:29:17 (GMT) |
commit | 2306e6049bc1362bab69b472b6653203e372464b (patch) | |
tree | 3b2101697d81c51e0a14588848c63e2b9d22c315 /Lib/_strptime.py | |
parent | 06e5e730dd802d4560880e1a2ed69d2bbca6be2f (diff) | |
download | cpython-2306e6049bc1362bab69b472b6653203e372464b.zip cpython-2306e6049bc1362bab69b472b6653203e372464b.tar.gz cpython-2306e6049bc1362bab69b472b6653203e372464b.tar.bz2 |
Issue #17165: fix a bare import in _strptime.py.
Patch by Berker Peksag.
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 b0cd3d6..3ecfc2a 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: +except ImportError: from _dummy_thread import allocate_lock as _thread_allocate_lock __all__ = [] |