diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2010-05-03 18:10:39 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2010-05-03 18:10:39 +0000 |
commit | e670f5f69143dac918c6d36649180e2ea1f597a4 (patch) | |
tree | 90c0f4bbfa98f3c01f1db62629e119f6e3a73b24 /numpy/lib | |
parent | 50ae5233e5e0877724012d873879da13d4fb673a (diff) | |
download | numpy-e670f5f69143dac918c6d36649180e2ea1f597a4.tar.gz |
BUG: The builtin file function goes away in python 3k, use open instead.
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/npyio.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 7a6e0238a..a6e941770 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, 'U') + fh = open(fname, 'U') elif hasattr(fname, 'readline'): fh = fname else: |