diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-08-27 04:36:38 -0700 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2020-01-03 10:48:11 -0500 |
commit | ed1e9659f103260a32536b4a7615393e3b1173dc (patch) | |
tree | bc5b0e2aae24dd6b35a7d9c8d9e77331176f2f51 /numpy/compat | |
parent | f30b2564d3923b2c307a026e4a22d20bc19872f0 (diff) | |
download | numpy-ed1e9659f103260a32536b4a7615393e3b1173dc.tar.gz |
MAINT: Remove unnecessary 'from __future__ import ...' statements
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
Diffstat (limited to 'numpy/compat')
-rw-r--r-- | numpy/compat/__init__.py | 2 | ||||
-rw-r--r-- | numpy/compat/_inspect.py | 2 | ||||
-rw-r--r-- | numpy/compat/setup.py | 2 | ||||
-rw-r--r-- | numpy/compat/tests/test_compat.py | 2 |
4 files changed, 0 insertions, 8 deletions
diff --git a/numpy/compat/__init__.py b/numpy/compat/__init__.py index 5b371f5c0..afee621b8 100644 --- a/numpy/compat/__init__.py +++ b/numpy/compat/__init__.py @@ -8,8 +8,6 @@ extensions, which may be included for the following reasons: * we may only need a small subset of the copied library/module """ -from __future__ import division, absolute_import, print_function - from . import _inspect from . import py3k from ._inspect import getargspec, formatargspec diff --git a/numpy/compat/_inspect.py b/numpy/compat/_inspect.py index 439d0d2c2..9a874a71d 100644 --- a/numpy/compat/_inspect.py +++ b/numpy/compat/_inspect.py @@ -5,8 +5,6 @@ significantly contributes to numpy import times. Importing this copy has almost no overhead. """ -from __future__ import division, absolute_import, print_function - import types __all__ = ['getargspec', 'formatargspec'] diff --git a/numpy/compat/setup.py b/numpy/compat/setup.py index 882857428..afa511673 100644 --- a/numpy/compat/setup.py +++ b/numpy/compat/setup.py @@ -1,5 +1,3 @@ -from __future__ import division, print_function - def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration diff --git a/numpy/compat/tests/test_compat.py b/numpy/compat/tests/test_compat.py index 1543aafaf..2b8acbaa0 100644 --- a/numpy/compat/tests/test_compat.py +++ b/numpy/compat/tests/test_compat.py @@ -1,5 +1,3 @@ -from __future__ import division, absolute_import, print_function - from os.path import join from numpy.compat import isfileobj |