diff options
Diffstat (limited to 'numpy/oldnumeric/alter_code2.py')
-rw-r--r-- | numpy/oldnumeric/alter_code2.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/oldnumeric/alter_code2.py b/numpy/oldnumeric/alter_code2.py index baa6b9d26..c163c9565 100644 --- a/numpy/oldnumeric/alter_code2.py +++ b/numpy/oldnumeric/alter_code2.py @@ -19,6 +19,8 @@ Makes the following changes: oldnumeric.random_array, and oldnumeric.fft """ +from __future__ import division, absolute_import, print_function + #__all__ = ['convertfile', 'convertall', 'converttree'] __all__ = [] @@ -52,7 +54,7 @@ def changeimports(fstr, name, newname): ind = 0 Nlen = len(fromstr) Nlen2 = len("from %s import " % newname) - while 1: + while True: found = fstr.find(fromstr,ind) if (found < 0): break |