summaryrefslogtreecommitdiff
path: root/keystoneclient/generic
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/generic
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/generic')
-rw-r--r--keystoneclient/generic/client.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/keystoneclient/generic/client.py b/keystoneclient/generic/client.py
index f61edec..6d04802 100644
--- a/keystoneclient/generic/client.py
+++ b/keystoneclient/generic/client.py
@@ -75,14 +75,14 @@ class Client(httpclient.HTTPClient):
return self._local_keystone_exists()
def _local_keystone_exists(self):
- """Checks if Keystone is available on default local port 35357."""
+ """Check if Keystone is available on default local port 35357."""
results = self._check_keystone_versions("http://localhost:35357")
if results is None:
results = self._check_keystone_versions("https://localhost:35357")
return results
def _check_keystone_versions(self, url):
- """Calls Keystone URL and detects the available API versions."""
+ """Call Keystone URL and detects the available API versions."""
try:
resp, body = self._request(url, "GET",
headers={'Accept':
@@ -144,7 +144,7 @@ class Client(httpclient.HTTPClient):
return self._check_keystone_extensions(url)
def _check_keystone_extensions(self, url):
- """Calls Keystone URL and detects the available extensions."""
+ """Call Keystone URL and detects the available extensions."""
try:
if not url.endswith("/"):
url += '/'
@@ -173,7 +173,7 @@ class Client(httpclient.HTTPClient):
@staticmethod
def _get_version_info(version, root_url):
- """Parses version information.
+ """Parse version information.
:param version: a dict of a Keystone version response
:param root_url: string url used to construct
@@ -192,7 +192,7 @@ class Client(httpclient.HTTPClient):
@staticmethod
def _get_extension_info(extension):
- """Parses extension information.
+ """Parse extension information.
:param extension: a dict of a Keystone extension response
:returns: tuple - (alias, name)