Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2306e60

Browse files
committed
Issue #17165: fix a bare import in _strptime.py.
Patch by Berker Peksag.
1 parent 06e5e73 commit 2306e60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/_strptime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
timezone as datetime_timezone)
2222
try:
2323
from _thread import allocate_lock as _thread_allocate_lock
24-
except:
24+
except ImportError:
2525
from _dummy_thread import allocate_lock as _thread_allocate_lock
2626

2727
__all__ = []

0 commit comments

Comments
 (0)