subcommand process bugfix (#750)

This commit is contained in:
Nicholas Parker
2016-09-01 18:31:19 +02:00
committed by tamarrow
parent 1f7d77ecff
commit b17adbd441

View File

@@ -6,7 +6,6 @@ import os
import platform
import shutil
import stat
import subprocess
import sys
import zipfile
from distutils.version import LooseVersion
@@ -578,8 +577,8 @@ def _execute_command(command):
process = Subproc().Popen(
command,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout=PIPE,
stderr=PIPE)
stdout, stderr = process.communicate()
@@ -678,7 +677,7 @@ class SubcommandProcess():
:rtype: int, str | None
"""
subproc = subprocess.Subproc().Popen(
subproc = Subproc().Popen(
[self._executable, self._command] + self._args,
stderr=PIPE)