summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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":