summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2010-05-03 18:10:39 +0000
committerCharles Harris <charlesr.harris@gmail.com>2010-05-03 18:10:39 +0000
commite670f5f69143dac918c6d36649180e2ea1f597a4 (patch)
tree90c0f4bbfa98f3c01f1db62629e119f6e3a73b24 /numpy/lib
parent50ae5233e5e0877724012d873879da13d4fb673a (diff)
downloadnumpy-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.py2
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: