Revision: 4198
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4198&view=rev
Author: mdboom
Date: 2007-11-09 13:09:04 -0800 (Fri, 09 Nov 2007)
Log Message:
-----------
Bugfix: [ 1745650 ] patch for mlab.py's comment handling
Comment handling had the potential to lose the last character of a
line. Slightly different from user submitted patch -- uses split()
instead of three lines of Python code.
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/mlab.py
Modified: trunk/matplotlib/lib/matplotlib/mlab.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/mlab.py 2007-11-09 20:59:47 UTC (rev
4197)
+++ trunk/matplotlib/lib/matplotlib/mlab.py 2007-11-09 21:09:04 UTC (rev
4198)
@@ -1265,7 +1265,7 @@
converterseq = None
for i,line in enumerate(fh):
if i<skiprows: continue
- line = line[:line.find(comments)].strip()
+ line = line.split(comments, 1).strip()
if not len(line): continue
if converterseq is None:
converterseq = [converters.get(j,float)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins