summaryrefslogtreecommitdiff
path: root/numpy/lib/io.py
diff options
context:
space:
mode:
authorRobert Kern <robert.kern@gmail.com>2008-02-28 06:39:28 +0000
committerRobert Kern <robert.kern@gmail.com>2008-02-28 06:39:28 +0000
commitf01d8e5fb16bfbfc22603ec9456ea3d088f75a4d (patch)
tree5cd35d843733f0c4f8f50cb9c4a3fabd08dbb146 /numpy/lib/io.py
parent761566177170684147e4407ef75479d83dd9d189 (diff)
downloadnumpy-f01d8e5fb16bfbfc22603ec9456ea3d088f75a4d.tar.gz
Correct condition.
Diffstat (limited to 'numpy/lib/io.py')
-rw-r--r--numpy/lib/io.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/io.py b/numpy/lib/io.py
index 07fe5ce6b..521148a5f 100644
--- a/numpy/lib/io.py
+++ b/numpy/lib/io.py
@@ -294,7 +294,7 @@ def loadtxt(fname, dtype=float, comments='#', delimiter=None, converters=None,
for i,line in enumerate(fh):
if i<skiprows: continue
comment_start = line.find(comments)
- if comment_start > 0:
+ if comment_start != -1:
line = line[:comment_start].strip()
else:
line = line.strip()