|
From: <md...@us...> - 2008-10-29 17:16:09
|
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.
|