[Numpy-svn] r8410 - trunk/numpy/compat
numpy-svn at scipy.org
numpy-svn at scipy.org
Thu May 13 06:55:09 EDT 2010
Author: ptvirtan
Date: 2010-05-13 05:55:09 -0500 (Thu, 13 May 2010)
New Revision: 8410
Modified:
trunk/numpy/compat/py3k.py
Log:
BUG: compat: fix a bug in open_latin1
Modified: trunk/numpy/compat/py3k.py
===================================================================
--- trunk/numpy/compat/py3k.py 2010-05-13 10:54:57 UTC (rev 8409)
+++ trunk/numpy/compat/py3k.py 2010-05-13 10:55:09 UTC (rev 8410)
@@ -25,7 +25,7 @@
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
More information about the Numpy-svn
mailing list