cleanup comments
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
|
||||
"""Utilities for OAuth.
|
||||
|
||||
Utilities for making it easier to work with OAuth 1.0
|
||||
credentials.
|
||||
Utilities for making it easier to work with OAuth 1.0 credentials.
|
||||
"""
|
||||
|
||||
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
|
||||
|
||||
@@ -147,15 +147,13 @@ class OAuthCredentials(Credentials):
|
||||
self.store = store
|
||||
|
||||
def __getstate__(self):
|
||||
"""Trim the state down to something that can be pickled.
|
||||
"""
|
||||
"""Trim the state down to something that can be pickled."""
|
||||
d = copy.copy(self.__dict__)
|
||||
del d['store']
|
||||
return d
|
||||
|
||||
def __setstate__(self, state):
|
||||
"""Reconstitute the state of the object from being pickled.
|
||||
"""
|
||||
"""Reconstitute the state of the object from being pickled."""
|
||||
self.__dict__.update(state)
|
||||
self.store = None
|
||||
|
||||
|
||||
@@ -289,7 +289,6 @@ class AccessTokenCredentials(OAuth2Credentials):
|
||||
Exceptions:
|
||||
AccessTokenCredentialsExpired: raised when the access_token expires or is
|
||||
revoked.
|
||||
|
||||
"""
|
||||
|
||||
def __init__(self, access_token, user_agent):
|
||||
|
||||
Reference in New Issue
Block a user