Fix run_command for python 3.6

This commit is contained in:
Matthew Honnibal 2020-08-26 05:02:43 +02:00
parent 884cac5fb5
commit 77852d2428

View File

@ -586,7 +586,7 @@ def run_command(command: Union[str, List[str]], *, capture=False, stdin=None) ->
command, command,
env=os.environ.copy(), env=os.environ.copy(),
input=stdin, input=stdin,
text=True, encoding="utf8",
check=True, check=True,
stdout=subprocess.PIPE if capture else None, stdout=subprocess.PIPE if capture else None,
stderr=subprocess.PIPE if capture else None, stderr=subprocess.PIPE if capture else None,