diff options
author | Greg Noel <GregNoel@tigris.org> | 2009-03-02 03:19:29 (GMT) |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2009-03-02 03:19:29 (GMT) |
commit | c1396537e5cae88e6357931dc6efe4074cf54ced (patch) | |
tree | cbd8a625268ec290a2d2e03bbad4a94de8678919 /bench | |
parent | 22364c2fd6117fefb82e0addb7e9efca027e5c2e (diff) | |
download | SCons-c1396537e5cae88e6357931dc6efe4074cf54ced.zip SCons-c1396537e5cae88e6357931dc6efe4074cf54ced.tar.gz SCons-c1396537e5cae88e6357931dc6efe4074cf54ced.tar.bz2 |
replace execfile() by equivalent exec statement
Diffstat (limited to 'bench')
-rw-r--r-- | bench/bench.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bench/bench.py b/bench/bench.py index 07c0384..d90d75a 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: |