[New-bugs-announce] [issue19107] CSV output of benchmark runner tries to write to binary file

Stefan Behnel report at bugs.python.org
Fri Sep 27 17:45:18 CEST 2013


New submission from Stefan Behnel:

The perf.py script opens the file for CSV output in binary mode, which no longer works in Py3:

Index: perf.py
===================================================================
--- perf.py     (Revision 80409)
+++ perf.py     (Arbeitskopie)
@@ -2443,7 +2448,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:

----------
components: Benchmarks
messages: 198483
nosy: scoder
priority: normal
severity: normal
status: open
title: CSV output of benchmark runner tries to write to binary file
type: behavior

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19107>
_______________________________________


More information about the New-bugs-announce mailing list