diff options
author | Navid Pustchi <npustchi@gmail.com> | 2016-04-23 06:48:46 +0000 |
---|---|---|
committer | Navid Pustchi <npustchi@gmail.com> | 2016-04-23 17:47:25 +0000 |
commit | 20e23f3e0dfb8853d39eedacd19f8c4f8a434fca (patch) | |
tree | 1be597b34b43a618994aebe3066100688059a322 /keystoneclient/contrib | |
parent | 946e928b5285a4994c4ef365b43295bdd90c9961 (diff) | |
download | python-keystoneclient-20e23f3e0dfb8853d39eedacd19f8c4f8a434fca.tar.gz |
Fix D400 PEP257 violation.
Currently tox ignores D400.
D400: First line should end with a period.
This change removes it and make keystoneclient docstrings compliant with it.
Change-Id: I29ecb4c58bb03c0b9a3be0b7a74d18fb06a350f2
Diffstat (limited to 'keystoneclient/contrib')
-rw-r--r-- | keystoneclient/contrib/auth/v3/oidc.py | 4 | ||||
-rw-r--r-- | keystoneclient/contrib/revoke/model.py | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/keystoneclient/contrib/auth/v3/oidc.py b/keystoneclient/contrib/auth/v3/oidc.py index e2871ac..fc3a356 100644 --- a/keystoneclient/contrib/auth/v3/oidc.py +++ b/keystoneclient/contrib/auth/v3/oidc.py @@ -47,7 +47,9 @@ class OidcPassword(federated.FederatedBaseAuth): username, password, client_id, client_secret, access_token_endpoint, scope='profile', grant_type='password'): - """The OpenID Connect plugin expects the following: + """The OpenID Connect plugin. + + It expects the following: :param auth_url: URL of the Identity Service :type auth_url: string diff --git a/keystoneclient/contrib/revoke/model.py b/keystoneclient/contrib/revoke/model.py index 925847c..914a1f4 100644 --- a/keystoneclient/contrib/revoke/model.py +++ b/keystoneclient/contrib/revoke/model.py @@ -94,7 +94,7 @@ def attr_keys(event): class RevokeTree(object): - """Fast Revocation Checking Tree Structure + """Fast Revocation Checking Tree Structure. The Tree is an index to quickly match tokens against events. Each node is a hashtable of key=value combinations from revocation events. @@ -127,7 +127,7 @@ class RevokeTree(object): return event def remove_event(self, event): - """Update the tree based on the removal of a Revocation Event + """Update the tree based on the removal of a Revocation Event. Removes empty nodes from the tree from the leaf back to the root. @@ -158,7 +158,7 @@ class RevokeTree(object): return map(self.add_event, revoke_events or []) def is_revoked(self, token_data): - """Check if a token matches the revocation event + """Check if a token is revoked. Compare the values for each level of the tree with the values from the token, accounting for attributes that have alternative |