[Numpy-svn] r4831 - trunk/numpy/lib

numpy-svn@scip... numpy-svn@scip...
Thu Feb 28 00:39:52 CST 2008


Author: rkern
Date: 2008-02-28 00:39:28 -0600 (Thu, 28 Feb 2008)
New Revision: 4831

Modified:
   trunk/numpy/lib/io.py
Log:
Correct condition.

Modified: trunk/numpy/lib/io.py
===================================================================
--- trunk/numpy/lib/io.py	2008-02-28 06:31:48 UTC (rev 4830)
+++ trunk/numpy/lib/io.py	2008-02-28 06:39:28 UTC (rev 4831)
@@ -294,7 +294,7 @@
     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()



More information about the Numpy-svn mailing list