Ticket #7557: 7557-1.diff
File 7557-1.diff, 564 bytes (added by , 16 years ago) |
---|
-
django/template/__init__.py
636 636 if var.endswith('.'): 637 637 raise ValueError 638 638 639 except TypeError: 640 raise TypeError("Variable must be a string or number, got %s" % type(var)) 641 639 642 except ValueError: 640 643 # A ValueError means that the variable isn't a number. 641 644 if var.startswith('_(') and var.endswith(')'):