mirror of https://gitlab.com/ita1024/waf.git
readf_win32: fix small typo
This commit is contained in:
parent
1ae1fef31e
commit
28b5d25a55
|
@ -219,7 +219,7 @@ if hasattr(os, 'O_NOINHERIT'):
|
||||||
|
|
||||||
if sys.hexversion > 0x3000000 and not 'b' in m:
|
if sys.hexversion > 0x3000000 and not 'b' in m:
|
||||||
m += 'b'
|
m += 'b'
|
||||||
f = open(fname, m)
|
f = open(f, m)
|
||||||
try:
|
try:
|
||||||
txt = f.read()
|
txt = f.read()
|
||||||
finally:
|
finally:
|
||||||
|
@ -231,7 +231,7 @@ if hasattr(os, 'O_NOINHERIT'):
|
||||||
txt = f.read()
|
txt = f.read()
|
||||||
finally:
|
finally:
|
||||||
f.close()
|
f.close()
|
||||||
return txt
|
return txt
|
||||||
|
|
||||||
def writef_win32(f, data, m='w', encoding='ISO8859-1'):
|
def writef_win32(f, data, m='w', encoding='ISO8859-1'):
|
||||||
if sys.hexversion > 0x3000000 and not 'b' in m:
|
if sys.hexversion > 0x3000000 and not 'b' in m:
|
||||||
|
|
Loading…
Reference in New Issue