summaryrefslogtreecommitdiff
path: root/test/SConscript
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2009-03-08 00:51:26 +0000
committerGreg Noel <GregNoel@tigris.org>2009-03-08 00:51:26 +0000
commitfc876e9782514b00815cd41a5cded94345b59a03 (patch)
treebeffc7420a3c8681158aeefa6b82628fa7121aca /test/SConscript
parente67fe4c80b6c241fcb45d3e4a4387b90dae7638f (diff)
downloadscons-fc876e9782514b00815cd41a5cded94345b59a03.tar.gz
Issue 2326, change execfile() to exec ... (FIXED)
Diffstat (limited to 'test/SConscript')
-rw-r--r--test/SConscript/SConscriptChdir.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/test/SConscript/SConscriptChdir.py b/test/SConscript/SConscriptChdir.py
index 8169f08f..4c558443 100644
--- a/test/SConscript/SConscriptChdir.py
+++ b/test/SConscript/SConscriptChdir.py
@@ -44,32 +44,27 @@ SConscript('dir5/SConscript')
""")
test.write(['dir1', 'SConscript'], """
-import string
-exec(string.replace(open("create_test.py").read(), '\\r', '\\n'))
+exec(open("create_test.py", 'rU').read())
""")
test.write(['dir2', 'SConscript'], """
-import string
-exec(string.replace(open("create_test.py").read(), '\\r', '\\n'))
+exec(open("create_test.py", 'rU').read())
""")
test.write(['dir3', 'SConscript'], """
import os.path
name = os.path.join('dir3', 'create_test.py')
-import string
-exec(string.replace(open(name).read(), '\\r', '\\n'))
+exec(open(name, 'rU').read())
""")
test.write(['dir4', 'SConscript'], """
-import string
-exec(string.replace(open("create_test.py").read(), '\\r', '\\n'))
+exec(open("create_test.py", 'rU').read())
""")
test.write(['dir5', 'SConscript'], """
import os.path
name = os.path.join('dir5', 'create_test.py')
-import string
-exec(string.replace(open(name).read(), '\\r', '\\n'))
+exec(open(name, 'rU').read())
""")
for dir in ['dir1', 'dir2', 'dir3','dir4', 'dir5']: