summaryrefslogtreecommitdiff
path: root/keystoneclient/v2_0
diff options
context:
space:
mode:
authorNavid Pustchi <npustchi@gmail.com>2016-04-23 03:19:58 +0000
committerNavid Pustchi <npustchi@gmail.com>2016-04-23 06:25:20 +0000
commit946e928b5285a4994c4ef365b43295bdd90c9961 (patch)
tree7e535845a5be75af7b0f2cae1e96186385e34c32 /keystoneclient/v2_0
parentc0893709305260fa1d2df967e973363db614624d (diff)
downloadpython-keystoneclient-946e928b5285a4994c4ef365b43295bdd90c9961.tar.gz
Fix D401 PEP257 violation.
Currently tox ignores D401. 401: First line should be in imperative mood. This change removes it and make keystoneclient docstrings compliant with it. Change-Id: If34ff12d18390b357342cf29f2d116dd3c86a44d
Diffstat (limited to 'keystoneclient/v2_0')
-rw-r--r--keystoneclient/v2_0/roles.py4
-rw-r--r--keystoneclient/v2_0/tokens.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/keystoneclient/v2_0/roles.py b/keystoneclient/v2_0/roles.py
index d0d3a79..d0d43a8 100644
--- a/keystoneclient/v2_0/roles.py
+++ b/keystoneclient/v2_0/roles.py
@@ -56,7 +56,7 @@ class RoleManager(base.ManagerWithFind):
return self._list("/users/%s/roles" % user_id, "roles")
def add_user_role(self, user, role, tenant=None):
- """Adds a role to a user.
+ """Add a role to a user.
If tenant is specified, the role is added just for that tenant,
otherwise the role is added globally.
@@ -72,7 +72,7 @@ class RoleManager(base.ManagerWithFind):
return self._update(route % (user_id, role_id), None, "roles")
def remove_user_role(self, user, role, tenant=None):
- """Removes a role from a user.
+ """Remove a role from a user.
If tenant is specified, the role is removed just for that tenant,
otherwise the role is removed from the user's global roles.
diff --git a/keystoneclient/v2_0/tokens.py b/keystoneclient/v2_0/tokens.py
index bf3a209..abf3ce5 100644
--- a/keystoneclient/v2_0/tokens.py
+++ b/keystoneclient/v2_0/tokens.py
@@ -117,7 +117,7 @@ class TokenManager(base.Manager):
return access.AccessInfo.factory(auth_token=token_id, body=body)
def get_revoked(self):
- """Returns the revoked tokens response.
+ """Return the revoked tokens response.
The response will be a dict containing 'signed' which is a CMS-encoded
document.