diff options
author | rgommers <ralf.gommers@googlemail.com> | 2010-07-31 05:32:55 +0000 |
---|---|---|
committer | rgommers <ralf.gommers@googlemail.com> | 2010-07-31 05:32:55 +0000 |
commit | 64f654fc6bcfc3f94c1ffa501873af3584c3b1c2 (patch) | |
tree | 16f16e209f7356fd95ea39a8c696aeb0d5ce7f34 /numpy/core/numeric.py | |
parent | d1a661df48625ce5544d83dc022c96cf8c5d41c7 (diff) | |
download | numpy-64f654fc6bcfc3f94c1ffa501873af3584c3b1c2.tar.gz |
BUG: fix base_repr for py3k. strings can not be indexed with floats anymore.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 88249b8e1..8bd0d1f67 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -1798,7 +1798,7 @@ def base_repr(number, base=2, padding=0): res = [] while num: res.append(digits[num % base]) - num /= base + num //= base if padding: res.append('0' * padding) if number < 0: |