Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitee2e172

Browse files
committed
Add a __repr__ for CodeSearchResult
1 parentbc6d390 commitee2e172

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎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)

[8]ページ先頭

©2009-2025 Movatter.jp