From 313d5e4ec89efabe667d122a567bee0817c4471c Mon Sep 17 00:00:00 2001 From: Nick DeRobertis Date: Sun, 24 Oct 2021 12:15:32 -0400 Subject: [PATCH] Revert "Revert "Remove debugging prints"" This reverts commit 578030b505d116bdec314447c23adf99181216a0. --- main.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main.py b/main.py index aa1607a..6c057db 100644 --- a/main.py +++ b/main.py @@ -90,12 +90,9 @@ class GitHubClient(object): 'Accept': 'application/vnd.github.v3.diff', 'Authorization': f'token {self.token}' } - print(f"Requesting {diff_url} to get changes") diff_request = requests.get(url=diff_url, headers=diff_headers) if diff_request.status_code == 200: - text = diff_request.text - print(f"Diff text:\n{text}") - return text + return diff_request.text raise Exception('Could not retrieve diff. Operation will abort.') def _get_existing_issues(self, page=1): @@ -635,7 +632,6 @@ if __name__ == "__main__": last_diff = StringIO(client.get_last_diff()) # Parse the diff for TODOs and create an Issue object for each. raw_issues = TodoParser().parse(last_diff) - print(f"Got raw issues: {raw_issues}") # This is a simple, non-perfect check to filter out any TODOs that have just been moved. # It looks for items that appear in the diff as both an addition and deletion. # It is based on the assumption that TODOs will not have identical titles in identical files.