summaryrefslogtreecommitdiffstats
path: root/bench
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2009-03-08 00:51:26 (GMT)
committerGreg Noel <GregNoel@tigris.org>2009-03-08 00:51:26 (GMT)
commit7f380de2d31a8ca288bd8a44a51de8f2867830be (patch)
treebeffc7420a3c8681158aeefa6b82628fa7121aca /bench
parent4993b28ca2ef767ede531e21450f390683da6b66 (diff)
downloadSCons-7f380de2d31a8ca288bd8a44a51de8f2867830be.zip
SCons-7f380de2d31a8ca288bd8a44a51de8f2867830be.tar.gz
SCons-7f380de2d31a8ca288bd8a44a51de8f2867830be.tar.bz2
Issue 2326, change execfile() to exec ... (FIXED)
Diffstat (limited to 'bench')
-rw-r--r--bench/bench.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bench/bench.py b/bench/bench.py
index d90d75a..ef60535 100644
--- a/bench/bench.py
+++ b/bench/bench.py
@@ -28,7 +28,6 @@ import getopt
import sys
import time
import types
-import string
Usage = """\
Usage: bench.py OPTIONS file.py
@@ -88,7 +87,7 @@ if len(args) != 1:
sys.exit(1)
-exec(string.replace(open(args[0]).read(), '\r', '\n'))
+exec(open(args[0], 'rU').read())
try: