Author: mtredinnick
Date: 2007-05-12 11:05:51 -0500 (Sat, 12 May 2007)
New Revision: 5210

Modified:
   django/trunk/django/contrib/localflavor/is_/forms.py
Log:
Fixed a compatibility problem with Python 2.3.


Modified: django/trunk/django/contrib/localflavor/is_/forms.py
===================================================================
--- django/trunk/django/contrib/localflavor/is_/forms.py        2007-05-12 
15:50:32 UTC (rev 5209)
+++ django/trunk/django/contrib/localflavor/is_/forms.py        2007-05-12 
16:05:51 UTC (rev 5210)
@@ -41,7 +41,7 @@
         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):
         """


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to