From 73c0447bb9055d2b73aaab9ef9b46f5b2b551a30 Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Wed, 24 Jan 2024 14:13:46 +0100 Subject: [PATCH] Revert "Fix bcr_presubmit.yml with python < 3.7" This reverts commit 08401577d570415e3a49b80771d02d46ee0c95e6. --- buildkite/bazel-central-registry/bcr_presubmit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildkite/bazel-central-registry/bcr_presubmit.py b/buildkite/bazel-central-registry/bcr_presubmit.py index 2f4a9d38d4..7f57529a5f 100755 --- a/buildkite/bazel-central-registry/bcr_presubmit.py +++ b/buildkite/bazel-central-registry/bcr_presubmit.py @@ -364,7 +364,7 @@ def file_exists_in_main_branch(file_path): # Run the git ls-tree command to check for the file in the main branch result = subprocess.run( ["git", "ls-tree", "-r", "main", "--name-only", file_path], - stdout=subprocess.PIPE, text=True, check=True + capture_output=True, text=True, check=True ) return result.stdout.strip() != ""