diff options
author | Bessenyei Balázs Donát <bessbd@apache.org> | 2021-06-25 15:38:19 +0200 |
---|---|---|
committer | Bessenyei Balázs Donát <bessbd@gmail.com> | 2021-06-25 15:41:27 +0200 |
commit | d529d7ddaecd59db38d8c4d55cfa5a35672060c9 (patch) | |
tree | 79a7f2ec0bcfcf755610edc18a61154f4efa0f2c | |
parent | 15cbb5502503c6e4d786bf0a85b7c225ccd14f71 (diff) | |
download | couchdb-fix-formatter-python-compatibility.tar.gz |
-rw-r--r-- | dev/format_check.py | 3 | ||||
-rw-r--r-- | dev/format_lib.py | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/dev/format_check.py b/dev/format_check.py index de099516f..9c2f04066 100644 --- a/dev/format_check.py +++ b/dev/format_check.py @@ -45,7 +45,8 @@ if __name__ == "__main__": item["raw_path"], ], encoding="utf-8", - capture_output=True, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, ) if run_result.returncode != 0: # erlfmt sometimes returns a non-zero status code with no diff --git a/dev/format_lib.py b/dev/format_lib.py index 269311414..454d92120 100644 --- a/dev/format_lib.py +++ b/dev/format_lib.py @@ -23,7 +23,10 @@ import subprocess def get_source_paths(): for item in subprocess.run( - ["git", "ls-files"], encoding="utf-8", capture_output=True + ["git", "ls-files"], + encoding="utf-8", + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, ).stdout.split("\n"): item_path = pathlib.Path(item) if item_path.suffix != ".erl": |