Revision: 7336
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7336&view=rev
Author:   jdh2358
Date:     2009-08-03 17:40:17 +0000 (Mon, 03 Aug 2009)

Log Message:
-----------
fixed rec2csv win32 file handle bug from sf patch 2831018

Modified Paths:
--------------
    branches/v0_99_maint/lib/matplotlib/mlab.py

Modified: branches/v0_99_maint/lib/matplotlib/mlab.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/mlab.py 2009-08-03 17:19:42 UTC (rev 
7335)
+++ branches/v0_99_maint/lib/matplotlib/mlab.py 2009-08-03 17:40:17 UTC (rev 
7336)
@@ -2595,7 +2595,7 @@
     for i, name in enumerate(r.dtype.names):
         funcs.append(with_mask(csvformat_factory(formatd[name]).tostr))
 
-    fh, opened = cbook.to_filehandle(fname, 'w', return_opened=True)
+    fh, opened = cbook.to_filehandle(fname, 'wb', return_opened=True)
     writer = csv.writer(fh, delimiter=delimiter)
     header = r.dtype.names
     if withheader:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to