diff options
author | martingoodson <martingoodson@gmail.com> | 2012-07-10 16:31:03 +0200 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@googlemail.com> | 2012-07-10 21:42:28 +0200 |
commit | 1a70875974aecec81de1866ad9847d511d420f65 (patch) | |
tree | 0147033be702763b62c4983a9bc3bcee5b923204 /numpy/lib/npyio.py | |
parent | 436a28f4ea4d596c59e85745eac7446f7e18903f (diff) | |
download | numpy-1a70875974aecec81de1866ad9847d511d420f65.tar.gz |
BUG: make genfromtxt work with comments=None. Closes Github issue 329.
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index b1e891f77..b63003f80 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -1291,7 +1291,8 @@ def genfromtxt(fname, dtype=float, comments='#', delimiter=None, """ # Py3 data conversions to bytes, for convenience - comments = asbytes(comments) + if comments is not None: + comments = asbytes(comments) if isinstance(delimiter, unicode): delimiter = asbytes(delimiter) if isinstance(missing, unicode): |