From f01d8e5fb16bfbfc22603ec9456ea3d088f75a4d Mon Sep 17 00:00:00 2001 From: Robert Kern Date: Thu, 28 Feb 2008 06:39:28 +0000 Subject: Correct condition. --- numpy/lib/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/io.py') 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 0: + if comment_start != -1: line = line[:comment_start].strip() else: line = line.strip() -- cgit v1.2.1