diff options
Diffstat (limited to 'django/utils/http.py')
| -rw-r--r-- | django/utils/http.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/utils/http.py b/django/utils/http.py index fe0b21f150..21d5822bf2 100644 --- a/django/utils/http.py +++ b/django/utils/http.py @@ -169,11 +169,11 @@ def int_to_base36(i): raise ValueError("Negative base36 conversion input.") if i < 36: return char_set[i] - b36 = "" + b36_parts = [] while i != 0: i, n = divmod(i, 36) - b36 = char_set[n] + b36 - return b36 + b36_parts.append(char_set[n]) + return "".join(reversed(b36_parts)) def urlsafe_base64_encode(s): |
