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

Skip to content

Commit 7ebee32

Browse files
author
Andrea Bedini
committed
Add a comment explaning __import__ syntax.
1 parent 5f14f6f commit 7ebee32

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/matplotlib/backends/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ def pylab_setup():
2121
backend_name = 'backend_'+backend
2222
backend_name = backend_name.lower() # until we banish mixed case
2323
backend_name = 'matplotlib.backends.%s'%backend_name.lower()
24+
25+
# the last argument is specifies whether to use absolute or relative
26+
# imports. 0 means only perform absolute imports.
2427
backend_mod = __import__(backend_name,
2528
globals(),locals(),[backend_name],0)
2629

0 commit comments

Comments
 (0)