From fc876e9782514b00815cd41a5cded94345b59a03 Mon Sep 17 00:00:00 2001 From: Greg Noel Date: Sun, 8 Mar 2009 00:51:26 +0000 Subject: Issue 2326, change execfile() to exec ... (FIXED) --- bench/bench.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bench') 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: -- cgit v1.2.1