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
1 changed files with 1 additions and 1 deletions

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: