diff options
author | Alan McIntyre <alan.mcintyre@local> | 2008-09-18 03:45:53 +0000 |
---|---|---|
committer | Alan McIntyre <alan.mcintyre@local> | 2008-09-18 03:45:53 +0000 |
commit | 95104b851ace0df9853451b0c3d146a0ce186ced (patch) | |
tree | 97a56d9bb1ed66ad9290e10fd62bf54855f9835c /numpy/f2py/f2py2e.py | |
parent | 3c6341f1c5f932018875fa461ae51310cb419e14 (diff) | |
download | numpy-95104b851ace0df9853451b0c3d146a0ce186ced.tar.gz |
Removed unused/redundant imports.
PEP8 conformance (only one import per line).
Diffstat (limited to 'numpy/f2py/f2py2e.py')
-rwxr-xr-x | numpy/f2py/f2py2e.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/numpy/f2py/f2py2e.py b/numpy/f2py/f2py2e.py index eb0ae1889..2fd4f6caa 100755 --- a/numpy/f2py/f2py2e.py +++ b/numpy/f2py/f2py2e.py @@ -21,7 +21,6 @@ f2py_version = __version__.version import sys import os import pprint -import shutil import types import re errmess=sys.stderr.write @@ -31,11 +30,8 @@ show=pprint.pprint import crackfortran import rules import cb_rules -import common_rules import auxfuncs import cfuncs -import capi_maps -import func2subr import f90mod_rules outmess = auxfuncs.outmess @@ -395,7 +391,7 @@ def run_compile(): """ Do it all in one call! """ - import tempfile,os,shutil + import tempfile i = sys.argv.index('-c') del sys.argv[i] @@ -547,6 +543,7 @@ def run_compile(): setup(ext_modules = [ext]) if remove_build_dir and os.path.exists(build_dir): + import shutil outmess('Removing build directory %s\n'%(build_dir)) shutil.rmtree(build_dir) |