diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:15:06 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:15:06 +0000 |
commit | 2dd53a6599652d7e6c594c1ffa377eb3232ba69c (patch) | |
tree | f70678019b6513608a1f38ec9b92da39c784cb95 /numpy/lib/_iotools.py | |
parent | 4bf9144224f26c740d6e8e6261e2eac068d854e0 (diff) | |
download | numpy-2dd53a6599652d7e6c594c1ffa377eb3232ba69c.tar.gz |
3K: lib: do not slice range() in _iotools needlessly
Diffstat (limited to 'numpy/lib/_iotools.py')
-rw-r--r-- | numpy/lib/_iotools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/_iotools.py b/numpy/lib/_iotools.py index 1c2fd1b6e..fc076e46c 100644 --- a/numpy/lib/_iotools.py +++ b/numpy/lib/_iotools.py @@ -190,7 +190,7 @@ class LineSplitter: if not line: return [] fixed = self.delimiter - slices = [slice(i, i + fixed) for i in range(len(line))[::fixed]] + slices = [slice(i, i + fixed) for i in range(0, len(line), fixed)] return [line[s] for s in slices] # def _variablewidth_splitter(self, line): |