matplotlib/matplotlib — pull request #1282 by cgohlke (2012-09-20 01:13:32+00:00)
Title: Use file open modes required by csv module

This PR fixes the `test_recarray_csv_roundtrip` failure/error on Python 3.

According to the Python documentation at http://docs.python.org/library/csv.html and http://docs.python.org/py3k/library/csv.html :

* On Python 2 "If csvfile is a file object, it must be opened with the ‘b’ flag on platforms where that makes a difference."

* On Python 3 "If csvfile is a file object, it should be opened with newline=''."