diff options
author | Greg Noel <GregNoel@tigris.org> | 2009-03-02 03:19:29 +0000 |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2009-03-02 03:19:29 +0000 |
commit | 1573ab84d1cece0367dfd7e804aee39d40f9f849 (patch) | |
tree | cbd8a625268ec290a2d2e03bbad4a94de8678919 /bench | |
parent | e42511a0e12bbd8d74b6dc1136898fea24e791df (diff) | |
download | scons-1573ab84d1cece0367dfd7e804aee39d40f9f849.tar.gz |
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 07c0384c..d90d75ad 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: |