[Python-checkins] cpython (2.7): Fix a missing encoding argument when opening a text file in some of iobench's
antoine.pitrou
python-checkins at python.org
Sat Oct 8 19:45:13 CEST 2011
http://hg.python.org/cpython/rev/8d4e5ee96ff8
changeset: 72812:8d4e5ee96ff8
branch: 2.7
parent: 72798:17b5afd321a8
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Oct 08 19:41:34 2011 +0200
summary:
Fix a missing encoding argument when opening a text file in some of iobench's subtests.
(found by Georg)
files:
Tools/iobench/iobench.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Tools/iobench/iobench.py b/Tools/iobench/iobench.py
--- a/Tools/iobench/iobench.py
+++ b/Tools/iobench/iobench.py
@@ -358,7 +358,7 @@
with text_open(name, "r") as f:
return f.read()
run_test_family(modify_tests, "b", text_files,
- lambda fn: open(fn, "r+"), make_test_source)
+ lambda fn: text_open(fn, "r+"), make_test_source)
def prepare_files():
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list