Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor cosmetic cleanup for r16347.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16367 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 7f68d06c983cab8d415d5efd520a272eecdd06f3 1 parent ce3c281
@jezdez jezdez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/forms/fields.py
View
2  django/forms/fields.py
@@ -337,7 +337,7 @@ def to_python(self, value):
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)
Please sign in to comment.
Something went wrong with that request. Please try again.