diff options
| author | Julian Taylor <jtaylor.debian@googlemail.com> | 2017-03-24 21:57:45 +0100 |
|---|---|---|
| committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2017-03-24 22:40:21 +0100 |
| commit | 136c1af41fc4353a786b7286cf011ec5fcba1d31 (patch) | |
| tree | d9269deb98bf7ac0b1cdddbcf8b634cddeff4da7 /numpy/distutils/exec_command.py | |
| parent | c29a68e5a5978a1e32fefb8776974f94ab343845 (diff) | |
| download | numpy-136c1af41fc4353a786b7286cf011ec5fcba1d31.tar.gz | |
MAINT: remove some unused variables
Diffstat (limited to 'numpy/distutils/exec_command.py')
| -rw-r--r-- | numpy/distutils/exec_command.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/numpy/distutils/exec_command.py b/numpy/distutils/exec_command.py index 8554e4273..616655339 100644 --- a/numpy/distutils/exec_command.py +++ b/numpy/distutils/exec_command.py @@ -55,13 +55,10 @@ __all__ = ['exec_command', 'find_executable'] import os import sys -import shlex import subprocess from numpy.distutils.misc_util import is_sequence, make_temp_file from numpy.distutils import log -from numpy.distutils.compat import get_exception - def temp_file_name(): fo, name = make_temp_file() @@ -146,7 +143,7 @@ def _supports_fileno(stream): """ if hasattr(stream, 'fileno'): try: - r = stream.fileno() + stream.fileno() return True except IOError: return False @@ -232,8 +229,6 @@ def _exec_command(command, use_shell=None, use_tee = None, **env): if use_tee is None: use_tee = os.name=='posix' - executable = None - if os.name == 'posix' and use_shell: # On POSIX, subprocess always uses /bin/sh, override sh = os.environ.get('SHELL', '/bin/sh') |
