Kaydet (Commit) 7f68d06c authored tarafından Jannis Leidel's avatar Jannis Leidel

Minor cosmetic cleanup for r16347.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16367 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst ce3c2810
......@@ -337,7 +337,7 @@ class BaseTemporalField(Field):
return self.strptime(value, format)
except ValueError:
if format.endswith('.%f'):
if not value.count('.')==1:
if value.count('.') != 1:
continue
try:
datetime_str, usecs_str = value.rsplit('.', 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment