Django

Code

Changeset 5685

Show
Ignore:
Timestamp:
07/13/07 08:15:35 (1 year ago)
Author:
mtredinnick
Message:

Fixed #4865 -- Replaced a stray generator comprehension with a list
comprehension so that we don't break Python 2.3.

Files:

Legend:

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

    r5609 r5685  
    1 # -*- coding: iso-8859-1 -*- 
    21""" 
    32Norwegian-specific Form helpers 
     
    6766 
    6867        def multiply_reduce(aval, bval): 
    69             return sum((a * b) for (a, b) in zip(aval, bval)
     68            return sum([(a * b) for (a, b) in zip(aval, bval)]
    7069 
    7170        if multiply_reduce(digits, weight_1) % 11 != 0: