summaryrefslogtreecommitdiff
path: root/pint/matplotlib.py
diff options
context:
space:
mode:
authorRyan May <rmay@ucar.edu>2019-01-21 15:40:51 -0700
committerRyan May <rmay@ucar.edu>2019-01-21 15:40:51 -0700
commitbfc74ef9dabbf695f29d5c85a494c8c14faf151f (patch)
tree960aa073e3d2d5bf0157e813ac7da6c7da62d01e /pint/matplotlib.py
parent6de8e48b73e672ddcab88057e2524b7cb2e3dba4 (diff)
downloadpint-bfc74ef9dabbf695f29d5c85a494c8c14faf151f.tar.gz
Fix import on Python 2.7
Need to enable absolute imports so that when we do `import matplotlib.units`, it doesn't look at the current module (matplotlib) first.
Diffstat (limited to 'pint/matplotlib.py')
-rw-r--r--pint/matplotlib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pint/matplotlib.py b/pint/matplotlib.py
index d1b543c..bda251d 100644
--- a/pint/matplotlib.py
+++ b/pint/matplotlib.py
@@ -9,6 +9,8 @@
:copyright: 2017 by Pint Authors, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
+from __future__ import absolute_import
+
import matplotlib.units