Ticket #16942: 16942-use-integer-divison.patch
File 16942-use-integer-divison.patch, 417 bytes (added by , 13 years ago) |
---|
-
django/utils/http.py
diff --git a/django/utils/http.py b/django/utils/http.py index 4fee731..af44ff4 100644
a b def int_to_base36(i): 166 166 # Construct base36 representation 167 167 while factor >= 0: 168 168 j = 36 ** factor 169 base36.append(digits[i / j])169 base36.append(digits[i // j]) 170 170 i = i % j 171 171 factor -= 1 172 172 return ''.join(base36)