8000 Speed up do_nothing_show test for interactive use, which was dominati… · matplotlib/matplotlib@73decf0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 73decf0

Browse files
committed
Speed up do_nothing_show test for interactive use, which was dominating startup time.
svn path=/trunk/matplotlib/; revision=6348
1 parent 9bc9650 commit 73decf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def pylab_setup():
3232
# by the backend, just do nothing
3333
def do_nothing_show(*args, **kwargs):
3434
frame = inspect.currentframe()
35-
fname = inspect.getframeinfo(frame.f_back)[0]
35+
fname = frame.f_back.f_code.co_filename
3636
if fname in ('<stdin>', '<ipython console>'):
3737
warnings.warn("""
3838
Your currently selected backend, '%s' does not support show().

0 commit comments

Comments
 (0)
0