Skip to content

Commit 83f65ec

Browse files
committed
Added enhanced_by_auth to users.show.
There are probably a number of other calls where this should be added.
1 parent 1cc735c commit 83f65ec

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

github2/users.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from github2.core import (BaseData, GithubCommand, Attribute, requires_auth)
1+
from github2.core import (BaseData, GithubCommand, Attribute, enhanced_by_auth,
2+
requires_auth)
23
import urllib
34

45

@@ -52,6 +53,7 @@ def search_by_email(self, query):
5253
"""
5354
return self.get_value("email", query, filter="user", datatype=User)
5455

56+
@enhanced_by_auth
5557
def show(self, username):
5658
"""Get information on Github user
5759

0 commit comments

Comments
 (0)