diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dda73f2..8a9f4ff 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 + rev: v4.2.0 hooks: - id: trailing-whitespace args: [--markdown-linebreak-ext=md] @@ -23,7 +23,7 @@ repos: - id: isort name: isort (python) - repo: https://github.com/asottile/pyupgrade - rev: v2.31.1 + rev: v2.32.0 hooks: - id: pyupgrade args: [--py37-plus] 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)