BF: handle 2.4 and %f in strftime

This commit is contained in:
Daniel Black 2013-09-16 18:50:19 +10:00
parent 2cefce5ee0
commit 50a6289f03

View file

@ -220,7 +220,7 @@ class DateStrptime(DateTemplate):
try:
time.strptime("26-Jul-2007 15:20:52.252","%d-%b-%Y %H:%M:%S.%f")
DateStrptime._f = True
except ValueError:
except (ValueError, KeyError):
DateTemplate._f = False
try: