summaryrefslogtreecommitdiff
path: root/bench/bench.py
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2009-03-02 03:19:29 +0000
committerGreg Noel <GregNoel@tigris.org>2009-03-02 03:19:29 +0000
commitc1396537e5cae88e6357931dc6efe4074cf54ced (patch)
treecbd8a625268ec290a2d2e03bbad4a94de8678919 /bench/bench.py
parent22364c2fd6117fefb82e0addb7e9efca027e5c2e (diff)
downloadscons-git-c1396537e5cae88e6357931dc6efe4074cf54ced.tar.gz
replace execfile() by equivalent exec statement
Diffstat (limited to 'bench/bench.py')
-rw-r--r--bench/bench.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bench/bench.py b/bench/bench.py
index 07c0384c5..d90d75ad3 100644
--- a/bench/bench.py
+++ b/bench/bench.py
@@ -28,6 +28,7 @@ import getopt
import sys
import time
import types
+import string
Usage = """\
Usage: bench.py OPTIONS file.py
@@ -87,7 +88,7 @@ if len(args) != 1:
sys.exit(1)
-execfile(args[0])
+exec(string.replace(open(args[0]).read(), '\r', '\n'))
try: