Django

Code

Changeset 5210

Show
Ignore:
Timestamp:
05/12/07 11:05:51 (1 year ago)
Author:
mtredinnick
Message:

Fixed a compatibility problem with Python 2.3.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/localflavor/is_/forms.py

    r5095 r5210  
    4242        """ 
    4343        check = [3, 2, 7, 6, 5, 4, 3, 2, 1, 0] 
    44         return sum(int(value[i]) * check[i] for i in range(10)) % 11 == 0 
     44        return sum([int(value[i]) * check[i] for i in range(10)]) % 11 == 0 
    4545 
    4646    def _format(self, value):