2
0
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:
Thomas Nagy 2012-12-05 01:23:52 +01:00
parent e9d5d29ce1
commit 072edeb396

View File

@ -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: