From 7f68d06c983cab8d415d5efd520a272eecdd06f3 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Sat, 11 Jun 2011 15:11:46 +0000 Subject: [PATCH] Minor cosmetic cleanup for r16347. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16367 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/forms/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/forms/fields.py b/django/forms/fields.py index d7b1bbe5db..e3b4a44fc9 100644 --- a/django/forms/fields.py +++ b/django/forms/fields.py @@ -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)