mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +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:
|
||||
m += 'b'
|
||||
f = open(f, m)
|
||||
f = os.fdopen(fd, m)
|
||||
try:
|
||||
txt = f.read()
|
||||
finally:
|
||||
|
Loading…
Reference in New Issue
Block a user