diff options
author | Mike Taves <mwtoews@gmail.com> | 2020-02-05 08:21:51 +1300 |
---|---|---|
committer | Mike Taves <mwtoews@gmail.com> | 2020-02-06 22:16:23 +1300 |
commit | 07bf33fbf5be8143aab037dc65aba3086f8badf6 (patch) | |
tree | 8f48992ca38bafe589ed331f54c43106ba23902d /numpy/distutils/fcompiler | |
parent | a9bc5db4671c6c702e3a8a35fbf31b8d3225fad2 (diff) | |
download | numpy-07bf33fbf5be8143aab037dc65aba3086f8badf6.tar.gz |
MAINT: cleanup unused imports; avoid redefinition of imports
* Cleanup unused imports (F401) of mostly standard Python modules,
or some internal but unlikely referenced modules
* Where internal imports are potentially used, mark with noqa
* Avoid redefinition of imports (F811)
Diffstat (limited to 'numpy/distutils/fcompiler')
-rw-r--r-- | numpy/distutils/fcompiler/__init__.py | 1 | ||||
-rw-r--r-- | numpy/distutils/fcompiler/environment.py | 1 | ||||
-rw-r--r-- | numpy/distutils/fcompiler/gnu.py | 1 | ||||
-rw-r--r-- | numpy/distutils/fcompiler/pg.py | 2 |
4 files changed, 1 insertions, 4 deletions
diff --git a/numpy/distutils/fcompiler/__init__.py b/numpy/distutils/fcompiler/__init__.py index a88b0d713..1c3069363 100644 --- a/numpy/distutils/fcompiler/__init__.py +++ b/numpy/distutils/fcompiler/__init__.py @@ -19,7 +19,6 @@ __all__ = ['FCompiler', 'new_fcompiler', 'show_fcompilers', import os import sys import re -import types from numpy.compat import open_latin1 diff --git a/numpy/distutils/fcompiler/environment.py b/numpy/distutils/fcompiler/environment.py index ae5fc404a..21a5be003 100644 --- a/numpy/distutils/fcompiler/environment.py +++ b/numpy/distutils/fcompiler/environment.py @@ -1,5 +1,4 @@ import os -import warnings from distutils.dist import Distribution __metaclass__ = type diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py index 128e54db3..8d69f6ba6 100644 --- a/numpy/distutils/fcompiler/gnu.py +++ b/numpy/distutils/fcompiler/gnu.py @@ -10,7 +10,6 @@ import subprocess from subprocess import Popen, PIPE, STDOUT from numpy.distutils.exec_command import filepath_from_subprocess_output from numpy.distutils.fcompiler import FCompiler -from numpy.distutils.system_info import system_info compilers = ['GnuFCompiler', 'Gnu95FCompiler'] diff --git a/numpy/distutils/fcompiler/pg.py b/numpy/distutils/fcompiler/pg.py index f3f96bbf2..eb628cb63 100644 --- a/numpy/distutils/fcompiler/pg.py +++ b/numpy/distutils/fcompiler/pg.py @@ -1,7 +1,7 @@ # http://www.pgroup.com import sys -from numpy.distutils.fcompiler import FCompiler, dummy_fortran_file +from numpy.distutils.fcompiler import FCompiler from sys import platform from os.path import join, dirname, normpath |