Auto fixes from pre-commit hooks

This commit is contained in:
pre-commit-ci[bot] 2022-04-11 21:12:42 +00:00 committed by Hugo Osvaldo Barrera
parent 0a4114ef9f
commit b18e1c78d2

View file

@ -82,9 +82,7 @@ def _strategy_command(*command: str, shell: bool = False):
expanded_command = list(map(expand_path, command))
try:
stdout = subprocess.check_output(
expanded_command, universal_newlines=True, shell=shell
)
stdout = subprocess.check_output(expanded_command, text=True, shell=shell)
return stdout.strip("\n")
except OSError as e:
cmd = " ".join(expanded_command)