From 9de935db664d77258ff54f88994a93cba4769d98 Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Fri, 7 Aug 2015 11:13:51 -0700 Subject: [PATCH] Renaming "Exceptions" docstring sections as "Raises". Fixes #241. --- oauth2client/client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/oauth2client/client.py b/oauth2client/client.py index 5956f44..72cbfda 100644 --- a/oauth2client/client.py +++ b/oauth2client/client.py @@ -895,7 +895,7 @@ class AccessTokenCredentials(OAuth2Credentials): http = httplib2.Http() http = credentials.authorize(http) - Exceptions: + Raises: AccessTokenCredentialsExpired: raised when the access_token expires or is revoked. """ @@ -1174,7 +1174,7 @@ class GoogleCredentials(OAuth2Credentials): - Stored "well known" file associated with `gcloud` command line tool. - Google Compute Engine production environment. - Exceptions: + Raises: ApplicationDefaultCredentialsError: raised when the credentials fail to be retrieved. """ @@ -1198,7 +1198,7 @@ class GoogleCredentials(OAuth2Credentials): def get_application_default(): """Get the Application Default Credentials for the current environment. - Exceptions: + Raises: ApplicationDefaultCredentialsError: raised when the credentials fail to be retrieved. """ @@ -1214,7 +1214,7 @@ class GoogleCredentials(OAuth2Credentials): credential_filename: the path to the file from where the credentials are to be read - Exceptions: + Raises: ApplicationDefaultCredentialsError: raised when the credentials fail to be retrieved. """