diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-05-12 16:05:51 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-05-12 16:05:51 +0000 |
| commit | 3780a4532c260b1609de378e40298f241f404a7e (patch) | |
| tree | 67dd0a92e8141c8ccff91b13e960d48dee7f05e5 | |
| parent | 2345029d0d607ebeea7e7a6e1bff6c09eaaff4a8 (diff) | |
Fixed a compatibility problem with Python 2.3.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5210 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/localflavor/is_/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): """ |
