From 072edeb396437f2712c38f2d20a573fee0d27ba2 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Wed, 5 Dec 2012 01:23:52 +0100 Subject: [PATCH] possible fix for python 3 IO issues on windows --- waflib/Utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waflib/Utils.py b/waflib/Utils.py index cbe0a90f..ce9a2fc3 100644 --- a/waflib/Utils.py +++ b/waflib/Utils.py @@ -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: