mirror of
https://github.com/django/django.git
synced 2024-11-29 22:56:46 +01:00
Minor cosmetic cleanup for r16347.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16367 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ce3c281090
commit
7f68d06c98
@ -337,7 +337,7 @@ class BaseTemporalField(Field):
|
|||||||
return self.strptime(value, format)
|
return self.strptime(value, format)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
if format.endswith('.%f'):
|
if format.endswith('.%f'):
|
||||||
if not value.count('.')==1:
|
if value.count('.') != 1:
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
datetime_str, usecs_str = value.rsplit('.', 1)
|
datetime_str, usecs_str = value.rsplit('.', 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user