summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-08 17:40:04 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-08 17:40:04 (GMT)
commit74472a94aa7e779eeb696ae8f1706c01fab4634f (patch)
treecdaf5471ab4714c04d473a492e4c210bdd2706b9
parentde8c723ddd7306493f0322c728e8abad996fde3f (diff)
downloadcpython-74472a94aa7e779eeb696ae8f1706c01fab4634f.zip
cpython-74472a94aa7e779eeb696ae8f1706c01fab4634f.tar.gz
cpython-74472a94aa7e779eeb696ae8f1706c01fab4634f.tar.bz2
Fix a missing encoding argument when opening a text file in some of iobench's subtests.
(found by Georg)
-rw-r--r--Tools/iobench/iobench.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/iobench/iobench.py b/Tools/iobench/iobench.py
index b3bdd6a..5ec6f17 100644
--- a/Tools/iobench/iobench.py
+++ b/Tools/iobench/iobench.py
@@ -358,7 +358,7 @@ def run_all_tests(options):
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():