Issue #17165: fix a bare import in _strptime.py.
Patch by Berker Peksag.
This commit is contained in:
parent
06e5e730dd
commit
2306e6049b
|
@ -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__ = []
|
||||
|
|
Loading…
Reference in New Issue