8000 Clean up print statements · python/cpython@4607444 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4607444

Browse files
committed
Clean up print statements
1 parent 5283a54 commit 4607444

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

backport/status_change.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,15 @@ async def check_status(event, gh, *args, **kwargs):
2626
response = requests.get(status_url,
2727
headers=request_headers)
2828
result = response.json()
29-
29+
print(f"miss-islington's PR state changed: {result['state']}")
3030
if result["state"] != "pending":
3131
url = "https://api.github.com/repos/miss-islington/cpython/git/refs/heads/"
3232
response = requests.get(url, headers=request_headers)
3333
for ref in response.json():
34-
print("ref obj")
35-
print(ref)
3634
if "backport-" in ref["ref"] and ref["object"]["sha"] == sha:
3735
backport_branch_name = ref["ref"].split("/")[-1]
3836
pr_url = f"https://api.github.com/repos/python/cpython/pulls?state=open&head=miss-islington:{backport_branch_name}"
3937
pr_response = requests.get(pr_url, headers=request_headers).json()
40-
print("pr respponse")
41-
print(pr_response)
4238
if pr_response:
4339
pr_number = pr_response[0]["number"]
4440
normalized_pr_title = util.normalize_title(pr_response[0]["title"],

0 commit comments

Comments
 (0)
0