]> granicus.if.org Git - python/commitdiff
Issue #17165: fix a bare import in _strptime.py.
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 10 Feb 2013 18:29:17 +0000 (19:29 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 10 Feb 2013 18:29:17 +0000 (19:29 +0100)
Patch by Berker Peksag.

Lib/_strptime.py

index b0cd3d619e10f92092edd7e06d1c0608dd419343..3ecfc2aca79bd1be682e5720b44f3a813fac255a 100644 (file)
@@ -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__ = []