Ticket #18800: local_history.patch
File local_history.patch, 716 bytes (added by , 12 years ago) |
---|
-
C:/Downloads/django/django/utils/numberformat.py
19 19 # Make the common case fast 20 20 if isinstance(number, int) and not use_grouping and not decimal_pos: 21 21 return mark_safe(unicode(number)) 22 # sign 23 if float(number) < 0: 24 sign = '-' 25 else: 26 sign = '' 22 sign = '' 27 23 str_number = unicode(number) 28 24 if str_number[0] == '-': 25 sign = '-' 29 26 str_number = str_number[1:] 30 27 # decimal part 31 28 if '.' in str_number: