Issue #17165: fix a bare import in _strptime.py.

Patch by Berker Peksag.
This commit is contained in:
Antoine Pitrou 2013-02-10 19:29:17 +01:00
parent 06e5e730dd
commit 2306e6049b
1 changed files with 1 additions and 1 deletions

View 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__ = []