[Python-checkins] benchmarks: Issue #19107: fix csv output with Python 3
antoine.pitrou
python-checkins at python.org
Sat Sep 28 19:13:14 CEST 2013
http://hg.python.org/benchmarks/rev/07a8440b3987
changeset: 210:07a8440b3987
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Sep 28 19:13:04 2013 +0200
summary:
Issue #19107: fix csv output with Python 3
files:
perf.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/perf.py b/perf.py
--- a/perf.py
+++ b/perf.py
@@ -2443,7 +2443,7 @@
raise ValueError("Invalid output_style: %r" % options.output_style)
if options.csv:
- with open(options.csv, "wb") as f:
+ with open(options.csv, "w") as f:
writer = csv.writer(f)
writer.writerow(['Benchmark', 'Base', 'Changed'])
for name, result in results:
--
Repository URL: http://hg.python.org/benchmarks
More information about the Python-checkins
mailing list