diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-09-30 16:10:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-30 16:10:59 -0500 |
commit | cd4fb52e889394125a1bb185b54ff8ca8800c5b1 (patch) | |
tree | de6b308ca5ae0c305fe1e5d4f71557aa07c5bfc8 /numpy | |
parent | cfe0298f0cce07bfd583894833850a498b449c7b (diff) | |
parent | b88a6785b44844b0b4054d9c77aa4a7d7b6bb1ff (diff) | |
download | numpy-cd4fb52e889394125a1bb185b54ff8ca8800c5b1.tar.gz |
Merge pull request #12061 from ceh-forks/remove-reduntant-imports
MAINT: remove redundant imports
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/distutils/mingw32ccompiler.py | 1 | ||||
-rw-r--r-- | numpy/distutils/misc_util.py | 2 | ||||
-rw-r--r-- | numpy/lib/utils.py | 1 |
3 files changed, 0 insertions, 4 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py index e7fa7bc0d..e6bbe1996 100644 --- a/numpy/distutils/mingw32ccompiler.py +++ b/numpy/distutils/mingw32ccompiler.py @@ -71,7 +71,6 @@ class Mingw32CCompiler(distutils.cygwinccompiler.CygwinCCompiler): # we need to support 3.2 which doesn't match the standard # get_versions methods regex if self.gcc_version is None: - import re p = subprocess.Popen(['gcc', '-dumpversion'], shell=True, stdout=subprocess.PIPE) out_string = p.stdout.read() diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py index 5cd61cc14..b30fc27f7 100644 --- a/numpy/distutils/misc_util.py +++ b/numpy/distutils/misc_util.py @@ -2008,7 +2008,6 @@ class Configuration(object): f.write('version = %r\n' % (version)) f.close() - import atexit def rm_file(f=target,p=self.info): if delete: try: os.remove(f); p('removed '+f) @@ -2050,7 +2049,6 @@ class Configuration(object): f.write('version = %r\n' % (version)) f.close() - import atexit def rm_file(f=target,p=self.info): if delete: try: os.remove(f); p('removed '+f) diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py index 9678bab76..249873654 100644 --- a/numpy/lib/utils.py +++ b/numpy/lib/utils.py @@ -80,7 +80,6 @@ class _Deprecate(object): new_name = self.new_name message = self.message - import warnings if old_name is None: try: old_name = func.__name__ |