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...
1 parent ce3c281 commit 7f68d06c983cab8d415d5efd520a272eecdd06f3 @jezdez jezdez committed Jun 11, 2011
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)

0 comments on commit 7f68d06

Please sign in to comment.