summaryrefslogtreecommitdiff
path: root/django/utils/baseconv.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2011-09-09 21:45:58 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2011-09-09 21:45:58 +0000
commit699688dc2cfad627c5d400c6bdb681c81e932bc0 (patch)
treefa13475b89bfdc5775b717acac98c8e9ec683626 /django/utils/baseconv.py
parente216c3cb1b3bd78975d155f95df97a6f6a3f2a96 (diff)
Switch to using explicit new-style division behavior, rather than relying on teh classic behavior.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16745 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/baseconv.py')
-rw-r--r--django/utils/baseconv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/baseconv.py b/django/utils/baseconv.py
index 702c172b34..8a6181bb2d 100644
--- a/django/utils/baseconv.py
+++ b/django/utils/baseconv.py
@@ -88,7 +88,7 @@ class BaseConverter(object):
while x > 0:
digit = x % len(to_digits)
res = to_digits[digit] + res
- x = int(x / len(to_digits))
+ x = int(x // len(to_digits))
return neg, res
base2 = BaseConverter(BASE2_ALPHABET)