Skip to content

Commit ee2e172

Browse files
committed
Add a __repr__ for CodeSearchResult
1 parent bc6d390 commit ee2e172

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

github3/search/code.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ def __init__(self, data, session=None):
2323
self.score = data.get('score')
2424
#: Text matches
2525
self.text_matches = data.get('text_matches', [])
26+
27+
def __repr__(self):
28+
return '<CodeSearchResult [{0}]>'.format(self.path)

0 commit comments

Comments
 (0)