summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/engine/SCons/compat/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/compat/__init__.py b/src/engine/SCons/compat/__init__.py
index 553fcf3..100d833 100644
--- a/src/engine/SCons/compat/__init__.py
+++ b/src/engine/SCons/compat/__init__.py
@@ -268,7 +268,7 @@ except AttributeError:
args = args[:3]
flags = os.O_RDWR | os.O_CREAT | os.O_EXCL
if not text and hasattr( os, 'O_BINARY' ) :
- flags |= os.O_BINARY
+ flags = flags | os.O_BINARY
while True:
try :
name = tempfile.mktemp( *args, **kw )