diff options
| author | Ryan May <rmay@ucar.edu> | 2019-01-21 15:40:51 -0700 |
|---|---|---|
| committer | Ryan May <rmay@ucar.edu> | 2019-01-21 15:40:51 -0700 |
| commit | bfc74ef9dabbf695f29d5c85a494c8c14faf151f (patch) | |
| tree | 960aa073e3d2d5bf0157e813ac7da6c7da62d01e /pint/matplotlib.py | |
| parent | 6de8e48b73e672ddcab88057e2524b7cb2e3dba4 (diff) | |
| download | pint-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.py | 2 |
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 |
