diff options
Diffstat (limited to 'numpy/oldnumeric/alter_code1.py')
-rw-r--r-- | numpy/oldnumeric/alter_code1.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/oldnumeric/alter_code1.py b/numpy/oldnumeric/alter_code1.py index 87538a855..34a59a7ca 100644 --- a/numpy/oldnumeric/alter_code1.py +++ b/numpy/oldnumeric/alter_code1.py @@ -27,7 +27,10 @@ Makes the following changes: * Converts uses of type(...) is <type> isinstance(..., <type>) + """ +from __future__ import division, absolute_import, print_function + __all__ = ['convertfile', 'convertall', 'converttree', 'convertsrc'] import sys @@ -85,7 +88,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 |