You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by be...@apache.org on 2021/06/25 13:40:36 UTC

[couchdb] 01/01: Fix CI

This is an automated email from the ASF dual-hosted git repository.

bessbd pushed a commit to branch fix-formatter-python-compatibility
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 7b2d449c4a3613bf0e111eda2bb947bc8d398fb9
Author: Bessenyei Balázs Donát <be...@apache.org>
AuthorDate: Fri Jun 25 15:38:19 2021 +0200

    Fix CI
---
 dev/format_check.py | 3 ++-
 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 757229a..b9b3c34 100644
--- a/dev/format_check.py
+++ b/dev/format_check.py
@@ -44,7 +44,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 7a53ba0..fc95fa7 100644
--- a/dev/format_lib.py
+++ b/dev/format_lib.py
@@ -22,7 +22,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":