summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBessenyei Balázs Donát <9086834+bessbd@users.noreply.github.com>2021-06-28 13:03:15 +0200
committerGitHub <noreply@github.com>2021-06-28 13:03:15 +0200
commit7a5873aa55eda01eeed90050f0249d03bdaf4bbe (patch)
tree79a7f2ec0bcfcf755610edc18a61154f4efa0f2c
parent15cbb5502503c6e4d786bf0a85b7c225ccd14f71 (diff)
downloadcouchdb-7a5873aa55eda01eeed90050f0249d03bdaf4bbe.tar.gz
Fix formatter python compatibility (#3640)
-rw-r--r--dev/format_check.py3
-rw-r--r--dev/format_lib.py5
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":