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

Skip to content

Commit b740e53

Browse files
committed
fixed csv2rec bug referenced in sf bug 2745173
svn path=/branches/v0_98_5_maint/; revision=7039
1 parent 10e4c5a commit b740e53

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

doc/matplotlibrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
# the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg
2828
# WX WXAgg Agg Cairo GD GDK Paint PS PDF SVG Template
2929
backend : Agg
30-
numerix : numpy # numpy, Numeric or numarray
3130
#maskedarray : False # True to use external maskedarray module
3231
# instead of numpy.ma; this is a temporary
3332
# setting for testing maskedarray.

lib/matplotlib/mlab.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2532,8 +2532,14 @@ def get_converters(reader):
25322532
fh.seek(0)
25332533
reader = csv.reader(fh, delimiter=delimiter)
25342534
process_skiprows(reader)
2535+
25352536
if needheader:
2536-
skipheader = reader.next()
2537+
while 1:
2538+
# skip past any comments and consume one line of column header
2539+
row = reader.next()
2540+
if len(row) and row[0].startswith(comments):
2541+
continue
2542+
break
25372543

25382544
# iterate over the remaining rows and convert the data to date
25392545
# objects, ints, or floats as approriate

0 commit comments

Comments
 (0)