Ticket #16942: 16942-use-integer-divison.patch

File 16942-use-integer-divison.patch, 417 bytes (added by adsworth, 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):  
    166166    # Construct base36 representation
    167167    while factor >= 0:
    168168        j = 36 ** factor
    169         base36.append(digits[i / j])
     169        base36.append(digits[i // j])
    170170        i = i % j
    171171        factor -= 1
    172172    return ''.join(base36)
Back to Top