Revision: 8687
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8687&view=rev
Author: jswhit
Date: 2010-09-08 12:21:50 +0000 (Wed, 08 Sep 2010)
Log Message:
-----------
don't raise exception if parallel or meridian already removed.
Modified Paths:
--------------
trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py
Modified: trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py
===================================================================
--- trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2010-09-08
12:00:32 UTC (rev 8686)
+++ trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2010-09-08
12:21:50 UTC (rev 8687)
@@ -4151,4 +4151,8 @@
def remove(self):
for item in self:
for x in item:
- x.remove()
+ try:
+ x.remove()
+ except ValueError:
+ # don't raise an error if item already removed
+ pass
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins