From 2306e6049bc1362bab69b472b6653203e372464b Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sun, 10 Feb 2013 19:29:17 +0100 Subject: [PATCH] Issue #17165: fix a bare import in _strptime.py. Patch by Berker Peksag. --- Lib/_strptime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/_strptime.py b/Lib/_strptime.py index b0cd3d619e1..3ecfc2aca79 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__ = []