|
From: <ry...@us...> - 2010-10-06 16:00:33
|
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.
|