summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/oldnumeric')
-rw-r--r--numpy/oldnumeric/alter_code1.py2
-rw-r--r--numpy/oldnumeric/alter_code2.py2
-rw-r--r--numpy/oldnumeric/fix_default_axis.py2
3 files changed, 3 insertions, 3 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
diff --git a/numpy/oldnumeric/alter_code2.py b/numpy/oldnumeric/alter_code2.py
index 4e4d94cd6..c163c9565 100644
--- a/numpy/oldnumeric/alter_code2.py
+++ b/numpy/oldnumeric/alter_code2.py
@@ -54,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
diff --git a/numpy/oldnumeric/fix_default_axis.py b/numpy/oldnumeric/fix_default_axis.py
index 57ab3ce78..5f6128724 100644
--- a/numpy/oldnumeric/fix_default_axis.py
+++ b/numpy/oldnumeric/fix_default_axis.py
@@ -185,7 +185,7 @@ def _import_change(fstr, names):
ind = 0
importstr = "from numpy import"
N = len(importstr)
- while 1:
+ while True:
ind = fstr.find(importstr, ind)
if (ind < 0):
break