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-08-05 15:14:18 +00:00
parent d47142f492
commit 656826ef2f

View File

@ -209,7 +209,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 = {