diff options
author | njsmith <njs@pobox.com> | 2013-04-02 08:53:45 -0700 |
---|---|---|
committer | njsmith <njs@pobox.com> | 2013-04-02 08:53:45 -0700 |
commit | a939f2aa83e7d37d5e35e7c2a8c539c59f682598 (patch) | |
tree | a5d3044d62baa8f52b2d7f42cfde58efd364eaf1 /numpy/oldnumeric/compat.py | |
parent | 5b74363e020f90f09dd41916dfc749d56421b3fa (diff) | |
parent | 670b12649e34164514fc4981d8fbacfadf1f389e (diff) | |
download | numpy-a939f2aa83e7d37d5e35e7c2a8c539c59f682598.tar.gz |
Merge pull request #3178 from charris/2to3-apply-import-fixer
2to3 apply import fixer
Diffstat (limited to 'numpy/oldnumeric/compat.py')
-rw-r--r-- | numpy/oldnumeric/compat.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/oldnumeric/compat.py b/numpy/oldnumeric/compat.py index 0c18917d0..46c3c727f 100644 --- a/numpy/oldnumeric/compat.py +++ b/numpy/oldnumeric/compat.py @@ -1,7 +1,7 @@ """Compatibility module containing deprecated names. """ -from __future__ import division +from __future__ import division, absolute_import __all__ = ['NewAxis', 'UFuncType', 'UfuncType', 'ArrayType', 'arraytype', @@ -16,7 +16,7 @@ __all__ = ['NewAxis', import numpy.core.multiarray as multiarray import numpy.core.umath as um from numpy.core.numeric import array -import functions +from . import functions import sys from cPickle import dump, dumps @@ -78,7 +78,7 @@ def load(fp): return loads(fp.read()) def _LoadArray(fp): - import typeconv + from . import typeconv ln = fp.readline().split() if ln[0][0] == 'A': ln[0] = ln[0][1:] typecode = ln[0][0] |