From: Antoine Pitrou Date: Sat, 8 Oct 2011 17:40:04 +0000 (+0200) Subject: Fix a missing encoding argument when opening a text file in some of iobench's subtests. X-Git-Tag: v3.2.3rc1~516 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74472a94aa7e779eeb696ae8f1706c01fab4634f;p=thirdparty%2FPython%2Fcpython.git Fix a missing encoding argument when opening a text file in some of iobench's subtests. (found by Georg) --- diff --git a/Tools/iobench/iobench.py b/Tools/iobench/iobench.py index b3bdd6a6709e..5ec6f179de73 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():