Update pylint to 2.8.0 (#49637)
This commit is contained in:
parent
28eaa67986
commit
f1d48ddfe3
32 changed files with 114 additions and 114 deletions
|
@ -90,15 +90,15 @@ def install_package(
|
|||
# Workaround for incompatible prefix setting
|
||||
# See http://stackoverflow.com/a/4495175
|
||||
args += ["--prefix="]
|
||||
process = Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE, env=env)
|
||||
_, stderr = process.communicate()
|
||||
if process.returncode != 0:
|
||||
_LOGGER.error(
|
||||
"Unable to install package %s: %s",
|
||||
package,
|
||||
stderr.decode("utf-8").lstrip().strip(),
|
||||
)
|
||||
return False
|
||||
with Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE, env=env) as process:
|
||||
_, stderr = process.communicate()
|
||||
if process.returncode != 0:
|
||||
_LOGGER.error(
|
||||
"Unable to install package %s: %s",
|
||||
package,
|
||||
stderr.decode("utf-8").lstrip().strip(),
|
||||
)
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue