diff options
author | Xavier Fernandez <xavier.fernandez@polyconseil.fr> | 2016-02-21 15:22:34 +0100 |
---|---|---|
committer | Xavier Fernandez <xav.fernandez@gmail.com> | 2016-10-28 14:36:59 +0200 |
commit | 68dc9c04951203d4531e471d88de6f58d732fc32 (patch) | |
tree | fa94ef14296c1950e344b291e42e7dc5c79139a9 | |
parent | f9429b0a98a5e193507f8453739d936f13cff412 (diff) | |
download | pip-68dc9c04951203d4531e471d88de6f58d732fc32.tar.gz |
call_subprocess: drop useless command_level arg
always called with debug
-rw-r--r-- | pip/req/req_install.py | 1 | ||||
-rw-r--r-- | pip/utils/__init__.py | 4 | ||||
-rw-r--r-- | pip/vcs/__init__.py | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/pip/req/req_install.py b/pip/req/req_install.py index 740e8e85e..e813b9912 100644 --- a/pip/req/req_install.py +++ b/pip/req/req_install.py @@ -424,7 +424,6 @@ class InstallRequirement(object): egg_info_cmd + egg_base_option, cwd=self.setup_py_dir, show_stdout=False, - command_level=logging.DEBUG, command_desc='python setup.py egg_info') if not self.req: diff --git a/pip/utils/__init__.py b/pip/utils/__init__.py index 0e132d21a..815bd3383 100644 --- a/pip/utils/__init__.py +++ b/pip/utils/__init__.py @@ -623,7 +623,7 @@ def unpack_file(filename, location, content_type, link): def call_subprocess(cmd, show_stdout=True, cwd=None, on_returncode='raise', - command_level=std_logging.DEBUG, command_desc=None, + command_desc=None, extra_environ=None, spinner=None): # This function's handling of subprocess output is confusing and I # previously broke it terribly, so as penance I will write a long comment @@ -657,7 +657,7 @@ def call_subprocess(cmd, show_stdout=True, cwd=None, part = '"%s"' % part.replace('"', '\\"') cmd_parts.append(part) command_desc = ' '.join(cmd_parts) - logger.log(command_level, "Running command %s", command_desc) + logger.debug("Running command %s", command_desc) env = os.environ.copy() if extra_environ: env.update(extra_environ) diff --git a/pip/vcs/__init__.py b/pip/vcs/__init__.py index 635aeb37d..8d3dbb271 100644 --- a/pip/vcs/__init__.py +++ b/pip/vcs/__init__.py @@ -310,7 +310,7 @@ class VersionControl(object): def run_command(self, cmd, show_stdout=True, cwd=None, on_returncode='raise', - command_level=logging.DEBUG, command_desc=None, + command_desc=None, extra_environ=None, spinner=None): """ Run a VCS subcommand @@ -320,7 +320,7 @@ class VersionControl(object): cmd = [self.name] + cmd try: return call_subprocess(cmd, show_stdout, cwd, - on_returncode, command_level, + on_returncode, command_desc, extra_environ, spinner) except OSError as e: |