Ticket #16942: fix-int_to_base36-division.patch
File fix-int_to_base36-division.patch, 421 bytes (added by , 13 years ago) |
---|
-
django/utils/http.py
diff --git a/django/utils/http.py b/django/utils/http.py index 4fee731..81ea6f1 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[int(i / j)]) 170 170 i = i % j 171 171 factor -= 1 172 172 return ''.join(base36)