cleanup comments

This commit is contained in:
Joe Gregorio
2011-02-18 15:07:17 -05:00
3 changed files with 3 additions and 7 deletions

View File

@@ -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)'

View File

@@ -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

View File

@@ -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):