From: <jd...@us...> - 2008-06-24 16:28:46
|
Revision: 5657 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5657&view=rev Author: jdh2358 Date: 2008-06-24 09:28:10 -0700 (Tue, 24 Jun 2008) Log Message: ----------- support string names for csv2rec Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/mlab.py Modified: trunk/matplotlib/lib/matplotlib/mlab.py =================================================================== --- trunk/matplotlib/lib/matplotlib/mlab.py 2008-06-24 14:37:41 UTC (rev 5656) +++ trunk/matplotlib/lib/matplotlib/mlab.py 2008-06-24 16:28:10 UTC (rev 5657) @@ -2381,6 +2381,10 @@ names.append(item) seen[item] = cnt+1 + else: + if cbook.is_string_like(names): + names = [n.strip() for n in names.split(',')] + # get the converter functions by inspecting checkrows converters = get_converters(reader) if converters is None: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |