diff options
author | Bessenyei Balázs Donát <bessbd@apache.org> | 2021-06-28 16:32:02 +0200 |
---|---|---|
committer | Bessenyei Balázs Donát <bessbd@gmail.com> | 2021-06-28 16:32:02 +0200 |
commit | e8d61d6541add9afb23b70f54868c82ae8cca5c2 (patch) | |
tree | 3813189edde6c175b76a62a1e3829550d31b1121 | |
parent | 12cbedd9317cefa4612ce35cd2bb7d4a774b9c67 (diff) | |
download | couchdb-e8d61d6541add9afb23b70f54868c82ae8cca5c2.tar.gz |
Fix CI
-rw-r--r-- | dev/format_all.py | 1 | ||||
-rw-r--r-- | dev/format_check.py | 1 | ||||
-rw-r--r-- | dev/format_lib.py | 15 |
3 files changed, 9 insertions, 8 deletions
diff --git a/dev/format_all.py b/dev/format_all.py index 60dff9cf6..067fc7920 100644 --- a/dev/format_all.py +++ b/dev/format_all.py @@ -26,6 +26,5 @@ if __name__ == "__main__": for item in get_source_paths(): subprocess.run( [os.environ["ERLFMT_PATH"], "-w", item["raw_path"]], - encoding="utf-8", stdout=subprocess.PIPE, ) diff --git a/dev/format_check.py b/dev/format_check.py index b9b3c3421..a46dafff3 100644 --- a/dev/format_check.py +++ b/dev/format_check.py @@ -43,7 +43,6 @@ if __name__ == "__main__": "--print-width=167", item["raw_path"], ], - encoding="utf-8", stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) diff --git a/dev/format_lib.py b/dev/format_lib.py index fc95fa737..563ef8df3 100644 --- a/dev/format_lib.py +++ b/dev/format_lib.py @@ -21,12 +21,15 @@ import subprocess def get_source_paths(): - for item in subprocess.run( - ["git", "ls-files"], - encoding="utf-8", - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - ).stdout.split("\n"): + for item in ( + subprocess.run( + ["git", "ls-files"], + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + ) + .stdout.decode("utf-8") + .split("\n") + ): item_path = pathlib.Path(item) if item_path.suffix != ".erl": continue |