From 3780a4532c260b1609de378e40298f241f404a7e Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sat, 12 May 2007 16:05:51 +0000 Subject: [PATCH] Fixed a compatibility problem with Python 2.3. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5210 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/localflavor/is_/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/localflavor/is_/forms.py b/django/contrib/localflavor/is_/forms.py index d052acf579..41727d8fa3 100644 --- a/django/contrib/localflavor/is_/forms.py +++ b/django/contrib/localflavor/is_/forms.py @@ -41,7 +41,7 @@ class ISIdNumberField(RegexField): method is modulo 11. """ check = [3, 2, 7, 6, 5, 4, 3, 2, 1, 0] - return sum(int(value[i]) * check[i] for i in range(10)) % 11 == 0 + return sum([int(value[i]) * check[i] for i in range(10)]) % 11 == 0 def _format(self, value): """