[Python-checkins] cpython (3.2): 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:44:06 CEST 2011
http://hg.python.org/cpython/rev/dbf5cbf0870b
changeset: 72810:dbf5cbf0870b
branch: 3.2
parent: 72805:1d71bc14113f
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Oct 08 19:40:04 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