Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c38137a

Browse files
committed
MNT/API: remove __all__ from backends.__init__.py
This would be an API break, however at some point most of these attributes were removed from the module so trying to bulk import would raise an AttributeError.
1 parent f19241d commit c38137a

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

lib/matplotlib/backends/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
# ipython relies on interactive_bk being defined here
1111
from matplotlib.rcsetup import interactive_bk
1212

13-
__all__ = ['backend','show','draw_if_interactive',
14-
'new_figure_manager', 'backend_version']
15-
1613
backend = matplotlib.get_backend() # validates, to match all_backends
1714

1815
def pylab_setup():
@@ -51,12 +48,6 @@ def do_nothing(*args, **kwargs): pass
5148
show = getattr(backend_mod, 'show', do_nothing_show)
5249
draw_if_interactive = getattr(backend_mod, 'draw_if_interactive', do_nothing)
5350

54-
# Additional imports which only happen for certain backends. This section
55-
# should probably disappear once all backends are uniform.
56-
if backend.lower() in ['wx','wxagg']:
57-
Toolbar = backend_mod.Toolbar
58-
__all__.append('Toolbar')
59-
6051
matplotlib.verbose.report('backend %s version %s' % (backend,backend_version))
6152

6253
return backend_mod, new_figure_manager, draw_if_interactive, show

0 commit comments

Comments
 (0)