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

Skip to content

Commit a296cdf

Browse files
committed
support string names for csv2rec
svn path=/trunk/matplotlib/; revision=5657
1 parent 5404680 commit a296cdf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/matplotlib/mlab.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2381,6 +2381,10 @@ def get_converters(reader):
23812381
names.append(item)
23822382
seen[item] = cnt+1
23832383

2384+
else:
2385+
if cbook.is_string_like(names):
2386+
names = [n.strip() for n in names.split(',')]
2387+
23842388
# get the converter functions by inspecting checkrows
23852389
converters = get_converters(reader)
23862390
if converters is None:

0 commit comments

Comments
 (0)