summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-05-13 10:55:09 +0000
committerPauli Virtanen <pav@iki.fi>2010-05-13 10:55:09 +0000
commitb022b9c5d2e49d1d2ab07be0fe4549342ab88c1e (patch)
treeacb3234b712bb6ed74690e59e5528e4f72117c81
parent1ecf17b3d2399647c25746568981b44f1af4b039 (diff)
downloadnumpy-b022b9c5d2e49d1d2ab07be0fe4549342ab88c1e.tar.gz
BUG: compat: fix a bug in open_latin1
-rw-r--r--numpy/compat/py3k.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/compat/py3k.py b/numpy/compat/py3k.py
index 7349964b8..609f09974 100644
--- a/numpy/compat/py3k.py
+++ b/numpy/compat/py3k.py
@@ -25,7 +25,7 @@ if sys.version_info[0] >= 3:
def isfileobj(f):
return isinstance(f, io.FileIO)
def open_latin1(filename, mode='r'):
- return open(f, mode=mode, encoding='iso-8859-1')
+ return open(filename, mode=mode, encoding='iso-8859-1')
strchar = 'U'
else:
bytes = str