From: Antoine Pitrou Date: Sun, 10 Feb 2013 18:29:17 +0000 (+0100) Subject: Issue #17165: fix a bare import in _strptime.py. X-Git-Tag: v3.4.0a1~1400 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2306e6049bc1362bab69b472b6653203e372464b;p=python Issue #17165: fix a bare import in _strptime.py. Patch by Berker Peksag. --- diff --git a/Lib/_strptime.py b/Lib/_strptime.py index b0cd3d619e..3ecfc2aca7 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__ = []