Revert "Fix bcr_presubmit.yml with python < 3.7"
This reverts commit 08401577d570415e3a49b80771d02d46ee0c95e6.
diff --git a/buildkite/bazel-central-registry/bcr_presubmit.py b/buildkite/bazel-central-registry/bcr_presubmit.py
index 2f4a9d3..7f57529 100755
--- a/buildkite/bazel-central-registry/bcr_presubmit.py
+++ b/buildkite/bazel-central-registry/bcr_presubmit.py
@@ -364,7 +364,7 @@
# 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() != ""