summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-11 20:19:23 (GMT)
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-11 20:19:23 (GMT)
commit9a379c58daf528d1875bb0e902651162bc4f7bc6 (patch)
treeb6ddf24b01ebc6c2b3f33b7d83cf555ae5c36953 /src
parentbf3e197e213e45b5c5966b70f186f2fc6b0ecfa2 (diff)
downloadSCons-9a379c58daf528d1875bb0e902651162bc4f7bc6.zip
SCons-9a379c58daf528d1875bb0e902651162bc4f7bc6.tar.gz
SCons-9a379c58daf528d1875bb0e902651162bc4f7bc6.tar.bz2
exec() must take a string, not a file object. Fixes py2/3
Diffstat (limited to 'src')
-rw-r--r--src/engine/SCons/Script/SConscript.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Script/SConscript.py b/src/engine/SCons/Script/SConscript.py
index a7c8a37..4e63f6c 100644
--- a/src/engine/SCons/Script/SConscript.py
+++ b/src/engine/SCons/Script/SConscript.py
@@ -165,7 +165,7 @@ def _SConscript(fs, *files, **kw):
try:
SCons.Script.sconscript_reading = SCons.Script.sconscript_reading + 1
if fn == "-":
- exec(sys.stdin, call_stack[-1].globals)
+ exec(sys.stdin.read(), call_stack[-1].globals)
else:
if isinstance(fn, SCons.Node.Node):
f = fn