Issue #17165: fix a bare import in _strptime.py.
Patch by Berker Peksag.
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 @@
                       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__ = []