projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4a2745
)
Fix a missing encoding argument when opening a text file in some of iobench's subtests.
author
Antoine Pitrou
<solipsis@pitrou.net>
Sat, 8 Oct 2011 17:41:34 +0000
(19:41 +0200)
committer
Antoine Pitrou
<solipsis@pitrou.net>
Sat, 8 Oct 2011 17:41:34 +0000
(19:41 +0200)
(found by Georg)
Tools/iobench/iobench.py
patch
|
blob
|
history
diff --git
a/Tools/iobench/iobench.py
b/Tools/iobench/iobench.py
index 92b4ffa180cb2a76f0c7c4c6ddfce001544eb658..6211e952b3deb5d2aeacac2741922c0139893adf 100644
(file)
--- 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():