readf_win32: fix small typo

This commit is contained in:
Jerome Carretero 2012-06-14 22:36:16 -04:00
parent 1ae1fef31e
commit 28b5d25a55
1 changed files with 2 additions and 2 deletions

View File

@ -219,7 +219,7 @@ if hasattr(os, 'O_NOINHERIT'):
if sys.hexversion > 0x3000000 and not 'b' in m:
m += 'b'
f = open(fname, m)
f = open(f, m)
try:
txt = f.read()
finally:
@ -231,7 +231,7 @@ if hasattr(os, 'O_NOINHERIT'):
txt = f.read()
finally:
f.close()
return txt
return txt
def writef_win32(f, data, m='w', encoding='ISO8859-1'):
if sys.hexversion > 0x3000000 and not 'b' in m: