Skip to content

Commit c3d47be

Browse files
committed
Apply decorator to appropriate functions
1 parent d46ae36 commit c3d47be

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

github3/github.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"""
99

1010
from github3.auths import Authorization
11-
from github3.decorators import requires_auth, requires_basic_auth
11+
from github3.decorators import (requires_auth, requires_basic_auth,
12+
requires_app_credentials)
1213
from github3.events import Event
1314
from github3.gists import Gist
1415
from github3.issues import Issue, issue_params
@@ -1040,6 +1041,7 @@ def _revoke_authorization(self, access_token=None):
10401041
})
10411042
return False
10421043

1044+
@requires_app_credentials
10431045
def revoke_authorization(self, access_token):
10441046
"""Revoke specified authorization for an OAuth application.
10451047
@@ -1050,6 +1052,7 @@ def revoke_authorization(self, access_token):
10501052
"""
10511053
self._revoke_authorization(access_token)
10521054

1055+
@requires_app_credentials
10531056
def revoke_authorizations(self):
10541057
"""Revoke all authorizations for an OAuth application.
10551058

0 commit comments

Comments
 (0)