From b18e1c78d2f8206e0345371c970d9af855008b99 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Apr 2022 21:12:42 +0000 Subject: [PATCH] Auto fixes from pre-commit hooks --- vdirsyncer/cli/fetchparams.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vdirsyncer/cli/fetchparams.py b/vdirsyncer/cli/fetchparams.py index 2ef6c4f..7952bc6 100644 --- a/vdirsyncer/cli/fetchparams.py +++ b/vdirsyncer/cli/fetchparams.py @@ -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)