Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jannis Leidel authored June 11, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/forms/fields.py
2  django/forms/fields.py
@@ -337,7 +337,7 @@ def to_python(self, value):
337 337
                     return self.strptime(value, format)
338 338
                 except ValueError:
339 339
                     if format.endswith('.%f'):
340  
-                        if not value.count('.')==1:
  340
+                        if value.count('.') != 1:
341 341
                             continue
342 342
                         try:
343 343
                             datetime_str, usecs_str = value.rsplit('.', 1)

0 notes on commit 7f68d06

Please sign in to comment.
Something went wrong with that request. Please try again.