summaryrefslogtreecommitdiff
path: root/numpy/lib/npyio.py
diff options
context:
space:
mode:
authorStefan van der Walt <stefan@sun.ac.za>2010-05-02 20:02:14 +0000
committerStefan van der Walt <stefan@sun.ac.za>2010-05-02 20:02:14 +0000
commit82d8d97ac30e20f9ae605df228bee43d89ef72a2 (patch)
treeb62864c6ae910980f8f13746a2ff85df917b6e27 /numpy/lib/npyio.py
parent6dc315f8aa7e67f637bcd2beb0c4105ddfcb4a83 (diff)
downloadnumpy-82d8d97ac30e20f9ae605df228bee43d89ef72a2.tar.gz
BUG: loadtxt should handle universal newlines.
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r--numpy/lib/npyio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py
index feb336dcc..7a6e0238a 100644
--- a/numpy/lib/npyio.py
+++ b/numpy/lib/npyio.py
@@ -584,7 +584,7 @@ def loadtxt(fname, dtype=float, comments='#', delimiter=None,
import bz2
fh = bz2.BZ2File(fname)
else:
- fh = file(fname)
+ fh = file(fname, 'U')
elif hasattr(fname, 'readline'):
fh = fname
else: