Revision: 6348
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6348&view=rev
Author:   mdboom
Date:     2008-10-29 17:16:02 +0000 (Wed, 29 Oct 2008)

Log Message:
-----------
Speed up do_nothing_show test for interactive use, which was dominating startup 
time.

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/backends/__init__.py

Modified: trunk/matplotlib/lib/matplotlib/backends/__init__.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/__init__.py        2008-10-29 
17:15:32 UTC (rev 6347)
+++ trunk/matplotlib/lib/matplotlib/backends/__init__.py        2008-10-29 
17:16:02 UTC (rev 6348)
@@ -32,7 +32,7 @@
     # by the backend, just do nothing
     def do_nothing_show(*args, **kwargs):
         frame = inspect.currentframe()
-        fname = inspect.getframeinfo(frame.f_back)[0]
+        fname = frame.f_back.f_code.co_filename
         if fname in ('<stdin>', '<ipython console>'):
             warnings.warn("""
 Your currently selected backend, '%s' does not support show().


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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to