Revision: 8729
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8729&view=rev
Author: ryanmay
Date: 2010-10-06 16:00:27 +0000 (Wed, 06 Oct 2010)
Log Message:
-----------
Move import of traceback to only occur in the event of an exception.
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/artist.py
Modified: trunk/matplotlib/lib/matplotlib/artist.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/artist.py 2010-10-04 19:22:32 UTC (rev
8728)
+++ trunk/matplotlib/lib/matplotlib/artist.py 2010-10-06 16:00:27 UTC (rev
8729)
@@ -239,13 +239,13 @@
"""
List the children of the artist which contain the mouse event *event*.
"""
- import traceback
L = []
try:
hascursor,info = self.contains(event)
if hascursor:
L.append(self)
except:
+ import traceback
traceback.print_exc()
print "while checking",self.__class__
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins