mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-23 02:16:01 +01:00
possible fix for python 3 IO issues on windows
This commit is contained in:
parent
e9d5d29ce1
commit
072edeb396
@ -221,7 +221,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(f, m)
|
f = os.fdopen(fd, m)
|
||||||
try:
|
try:
|
||||||
txt = f.read()
|
txt = f.read()
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
Reference in New Issue
Block a user