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

Commitb051232

Browse files
committed
Change GitHub's repr
If someone has called GitHub with authentication parameters or logged in,display the name they decided to use. Otherwise, just display the faux memorylocation
1 parente4f615e commitb051232

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎github3/github.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ def __init__(self, login='', password='', token=''):
5656
self.login(login,password)
5757

5858
def__repr__(self):
59+
ifself._session.auth:
60+
return'<GitHub [{0[0]}]>'.format(self._session.auth)
5961
return'<GitHub at 0x{0:x}>'.format(id(self))
6062

6163
@requires_auth

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp