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

Commit06c2495

Browse files
committed
Retrieiving /user shows GitHub trimmed an attribute
They removed total_private_gists. For now, I'm opting to totally removeit. We may add it back later as a perpetual "None" though.
1 parenta3b42fc commit06c2495

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎github3/users.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,11 @@ class AuthenticatedUser(User):
583583
currently authenticated user's plan and private email information.
584584
585585
.. versionadded:: 1.0.0
586+
587+
.. versionchanged:: 1.0.0
588+
589+
The ``total_private_gists`` attribute is no longer returned by
590+
GitHub's API and so is removed.
586591
"""
587592

588593
def_update_attributes(self,user):
@@ -592,9 +597,6 @@ def _update_attributes(self, user):
592597
#: Number of private repos owned by this user
593598
self.owned_private_repos=user['owned_private_repos']
594599

595-
#: Number of private gists owned by this user
596-
self.total_private_gists=user['total_private_gists']
597-
598600
#: Total number of private repos
599601
self.total_private_repos=user['total_private_repos']
600602

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp