diff options
| author | Emil Hessman <emil@hessman.se> | 2018-09-30 20:38:02 +0200 |
|---|---|---|
| committer | Emil Hessman <emil@hessman.se> | 2018-09-30 20:38:02 +0200 |
| commit | b88a6785b44844b0b4054d9c77aa4a7d7b6bb1ff (patch) | |
| tree | a80bc5e355e7fbebdcb5dd79c2928183bc753da4 /numpy/distutils | |
| parent | 87c1fcd0308ee78e743401bac2b0085249cca1e5 (diff) | |
| download | numpy-b88a6785b44844b0b4054d9c77aa4a7d7b6bb1ff.tar.gz | |
MAINT: remove redundant imports
Diffstat (limited to 'numpy/distutils')
| -rw-r--r-- | numpy/distutils/mingw32ccompiler.py | 1 | ||||
| -rw-r--r-- | numpy/distutils/misc_util.py | 2 |
2 files changed, 0 insertions, 3 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 8305aeae5..78e1a6a29 100644 --- a/numpy/distutils/misc_util.py +++ b/numpy/distutils/misc_util.py @@ -2009,7 +2009,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) @@ -2051,7 +2050,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) |
