diff options
Diffstat (limited to 'numpy/lib/io.py')
-rw-r--r-- | numpy/lib/io.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/io.py b/numpy/lib/io.py index dce93af76..07fe5ce6b 100644 --- a/numpy/lib/io.py +++ b/numpy/lib/io.py @@ -295,7 +295,7 @@ def loadtxt(fname, dtype=float, comments='#', delimiter=None, converters=None, if i<skiprows: continue comment_start = line.find(comments) if comment_start > 0: - line = line[:comments_start].strip() + line = line[:comment_start].strip() else: line = line.strip() if not len(line): continue |