This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scoder
Recipients scoder
Date 2013-09-27.15:45:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380296718.47.0.355256132109.issue19107@psf.upfronthosting.co.za>
In-reply-to
Content
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:
History
Date User Action Args
2013-09-27 15:45:18scodersetrecipients: + scoder
2013-09-27 15:45:18scodersetmessageid: <1380296718.47.0.355256132109.issue19107@psf.upfronthosting.co.za>
2013-09-27 15:45:18scoderlinkissue19107 messages
2013-09-27 15:45:18scodercreate