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