diff options
author | Greg Noel <GregNoel@tigris.org> | 2009-03-08 00:51:26 +0000 |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2009-03-08 00:51:26 +0000 |
commit | fc876e9782514b00815cd41a5cded94345b59a03 (patch) | |
tree | beffc7420a3c8681158aeefa6b82628fa7121aca /bench | |
parent | e67fe4c80b6c241fcb45d3e4a4387b90dae7638f (diff) | |
download | scons-fc876e9782514b00815cd41a5cded94345b59a03.tar.gz |
Issue 2326, change execfile() to exec ... (FIXED)
Diffstat (limited to 'bench')
-rw-r--r-- | bench/bench.py | 3 |
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: |