From ae75d8bae4f4d51a42b15974de58354c11047f4d Mon Sep 17 00:00:00 2001 From: Nick DeRobertis Date: Sun, 24 Oct 2021 12:27:53 -0400 Subject: [PATCH] Revert "Display github client information" This reverts commit dd21bd0164d7abeba4c579b1b7e56cdaa3cda471. --- main.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/main.py b/main.py index 6c057db..45f9946 100644 --- a/main.py +++ b/main.py @@ -63,10 +63,6 @@ class GitHubClient(object): # Retrieve the existing repo issues now so we can easily check them later. self._get_existing_issues() - def __repr__(self): - formatted_commits = json.dumps(self.commits, indent=2) - return f"GitHubClient(repo={self.repo}, before={self.before}, sha={self.sha}, diff_url={self.diff_url}, commits={formatted_commits})" - def get_timestamp(self, commit): return commit.get('timestamp') @@ -626,7 +622,6 @@ class TodoParser(object): if __name__ == "__main__": # Create a basic client for communicating with GitHub, automatically initialised with environment variables. client = GitHubClient() - print(f"Instantiated {client}") if client.diff_url or len(client.commits) != 0: # Get the diff from the last pushed commit. last_diff = StringIO(client.get_last_diff())