2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 18:07:12 +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: 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: