8000 Add repr to Deployment class · nikicat/github3.py@5458a44 · GitHub
[go: up one dir, main page]

Skip to 8000 content

Commit 5458a44

Browse files
committed
Add repr to Deployment class
1 parent ad50d18 commit 5458a44

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

github3/repos/deployment.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ def __init__(self, deployment, session=None):
4141

4242
#: URL to get the statuses of this deployment
4343
self.statuses_url = deployment.get('statuses_url')
44+
45+
def __repr__(self):
46+
return '<Deployment [{0} @ {1}]>'.format(self.id, self.sha)

0 commit comments

Comments
 (0)
0