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

Skip to content

Commit 5f14f6f

Browse files
author
Andrea Bedini
committed
make sure we only perform absolute imports on loading a backend
Fixes #2309
1 parent 8bba2a4 commit 5f14f6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def pylab_setup():
2222
backend_name = backend_name.lower() # until we banish mixed case
2323
backend_name = 'matplotlib.backends.%s'%backend_name.lower()
2424
backend_mod = __import__(backend_name,
25-
globals(),locals(),[backend_name])
25+
globals(),locals(),[backend_name],0)
2626

2727
# Things we pull in from all backends
2828
new_figure_manager = backend_mod.new_figure_manager

0 commit comments

Comments
 (0)