summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric/alter_code1.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/oldnumeric/alter_code1.py')
-rw-r--r--numpy/oldnumeric/alter_code1.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/oldnumeric/alter_code1.py b/numpy/oldnumeric/alter_code1.py
index 1e84fd894..34a59a7ca 100644
--- a/numpy/oldnumeric/alter_code1.py
+++ b/numpy/oldnumeric/alter_code1.py
@@ -88,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