Bug 1717645: Fix up_to_date for Python 3.6 r=ahal

Python 3.6 doesn't support the `capture_output` option, so use
`stdout=subprocess.PIPE` instead.

Differential Revision: https://phabricator.services.mozilla.com/D120027
This commit is contained in:
Mitchell Hentges 2021-07-29 22:26:22 +00:00
Родитель fbb9bb362b
Коммит ec0e3536bb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -205,7 +205,7 @@ class VirtualenvManager(VirtualenvHelper):
if env_requirements.pypi_requirements:
pip_json = self._run_pip(
["list", "--format", "json"], capture_output=True
["list", "--format", "json"], stdout=subprocess.PIPE
).stdout
installed_packages = json.loads(pip_json)
installed_packages = {