1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

certbot.util: suppress Popen CLI output (#8341)

* certbot.util: suppress Popen CLI output

Fixes #8326

* can't use subprocess.DEVNULL in py2
This commit is contained in:
alexzorin
2020-10-09 07:27:36 +11:00
committed by GitHub
parent 8a3aed0476
commit aa61e6ad4e

View File

@@ -401,14 +401,14 @@ def get_python_os_info(pretty=False):
try:
proc = subprocess.Popen(
["/usr/bin/sw_vers", "-productVersion"],
stdout=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
universal_newlines=True,
env=env_no_snap_for_external_calls(),
)
except OSError:
proc = subprocess.Popen(
["sw_vers", "-productVersion"],
stdout=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
universal_newlines=True,
env=env_no_snap_for_external_calls(),
)