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

Skip to content

Commit 03cddc8

Browse files
committed
compat.subprocess: Turn on absolute importing.
This prevents the module from importing itself (as opposed to the global subprocess module) on Python 3 after 2to3 conversion.
1 parent 888fa20 commit 03cddc8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/compat/subprocess.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
This module is safe to import from anywhere within matplotlib.
1414
"""
1515

16+
from __future__ import absolute_import # Required to import subprocess
1617
from __future__ import print_function
1718

1819
import subprocess

0 commit comments

Comments
 (0)