summaryrefslogtreecommitdiff
path: root/bench
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 /bench
parente67fe4c80b6c241fcb45d3e4a4387b90dae7638f (diff)
downloadscons-fc876e9782514b00815cd41a5cded94345b59a03.tar.gz
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 d90d75ad..ef605350 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: