From: Denis Laxalde Date: Fri, 13 Oct 2023 06:51:54 +0000 (+0200) Subject: refactor: use text mode for subprocess in async_to_sync.py X-Git-Tag: pool-3.2.0~12^2^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d04d29fc17a168fe6302735062369d970c7c150e;p=thirdparty%2Fpsycopg.git refactor: use text mode for subprocess in async_to_sync.py --- diff --git a/tools/async_to_sync.py b/tools/async_to_sync.py index 0bb9871db..0e450b278 100755 --- a/tools/async_to_sync.py +++ b/tools/async_to_sync.py @@ -104,7 +104,7 @@ def check(outputs: list[str]) -> int: # Check that all the files to convert are included in the --all list cmdline = ["git", "grep", "-l", f"auto-generated by '{SCRIPT_NAME}'", "**.py"] - maybe_conv = sp.check_output(cmdline, cwd=str(PROJECT_DIR)).decode().split() + maybe_conv = sp.check_output(cmdline, cwd=str(PROJECT_DIR), text=True).split() if not maybe_conv: logger.error("no file to check? Maybe this script bitrot?") return 1