Skip to content

Commit

Permalink
compat.subprocess: Turn on absolute importing.
Browse files Browse the repository at this point in the history
This prevents the module from importing itself (as opposed to the global
subprocess module) on Python 3 after 2to3 conversion.
  • Loading branch information
mgiuca-google committed Mar 19, 2013
1 parent 888fa20 commit 03cddc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/matplotlib/compat/subprocess.py
Expand Up @@ -13,6 +13,7 @@
This module is safe to import from anywhere within matplotlib.
"""

from __future__ import absolute_import # Required to import subprocess
from __future__ import print_function

import subprocess
Expand Down

0 comments on commit 03cddc8

Please sign in to comment.