Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f46dc4

Browse files
committed
fixed rec2csv win32 file handle bug from sf patch 2831018
svn path=/branches/v0_99_maint/; revision=7336
1 parent 452dcc2 commit 9f46dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/mlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2595,7 +2595,7 @@ def newfunc(val, mask, mval):
25952595
for i, name in enumerate(r.dtype.names):
25962596
funcs.append(with_mask(csvformat_factory(formatd[name]).tostr))
25972597

2598-
fh, opened = cbook.to_filehandle(fname, 'w', return_opened=True)
2598+
fh, opened = cbook.to_filehandle(fname, 'wb', return_opened=True)
25992599
writer = csv.writer(fh, delimiter=delimiter)
26002600
header = r.dtype.names
26012601
if withheader:

0 commit comments

Comments
 (0)