diff --git a/novaclient/client.py b/novaclient/client.py index 3cb18798d..0ae8bb285 100644 --- a/novaclient/client.py +++ b/novaclient/client.py @@ -254,7 +254,8 @@ class HTTPClient(object): def _extract_service_catalog(self, url, resp, body, extract_token=True): """See what the auth service told us and process the response. We may get redirected to another site, fail or actually get - back a service catalog with a token and our endpoints.""" + back a service catalog with a token and our endpoints. + """ # content must always present if resp.status_code == 200 or resp.status_code == 201: diff --git a/novaclient/crypto.py b/novaclient/crypto.py index a264823ad..d817be5bb 100644 --- a/novaclient/crypto.py +++ b/novaclient/crypto.py @@ -24,7 +24,8 @@ class DecryptionFailure(Exception): def decrypt_password(private_key, password): """Base64 decodes password and unecrypts it with private key. - Requires openssl binary available in the path""" + Requires openssl binary available in the path. + """ unencoded = base64.b64decode(password) cmd = ['openssl', 'rsautl', '-decrypt', '-inkey', private_key] proc = subprocess.Popen(cmd, stdin=subprocess.PIPE, diff --git a/novaclient/exceptions.py b/novaclient/exceptions.py index 6ff93d720..73049cda5 100644 --- a/novaclient/exceptions.py +++ b/novaclient/exceptions.py @@ -19,7 +19,8 @@ Exception definitions. class UnsupportedVersion(Exception): """Indicates that the user is trying to use an unsupported - version of the API""" + version of the API. + """ pass @@ -46,7 +47,8 @@ class AuthSystemNotFound(Exception): class NoTokenLookupException(Exception): """This form of authentication does not support looking up - endpoints from an existing token.""" + endpoints from an existing token. + """ pass diff --git a/novaclient/service_catalog.py b/novaclient/service_catalog.py index 2c4c99716..26f4ccc5c 100644 --- a/novaclient/service_catalog.py +++ b/novaclient/service_catalog.py @@ -36,7 +36,8 @@ class ServiceCatalog(object): service_name=None, volume_service_name=None): """Fetch the public URL from the Compute service for a particular endpoint attribute. If none given, return - the first. See tests for sample service catalog.""" + the first. See tests for sample service catalog. + """ matching_endpoints = [] if 'endpoints' in self.catalog: # We have a bastardized service catalog. Treat it special. :/ diff --git a/novaclient/v1_1/quota_classes.py b/novaclient/v1_1/quota_classes.py index 3f2908e5e..b57d7071b 100644 --- a/novaclient/v1_1/quota_classes.py +++ b/novaclient/v1_1/quota_classes.py @@ -21,7 +21,8 @@ class QuotaClassSet(base.Resource): @property def id(self): """QuotaClassSet does not have a 'id' attribute but base.Resource - needs it to self-refresh and QuotaSet is indexed by class_name""" + needs it to self-refresh and QuotaSet is indexed by class_name. + """ return self.class_name def update(self, *args, **kwargs): diff --git a/novaclient/v1_1/quotas.py b/novaclient/v1_1/quotas.py index bd5bd76e1..601bcebe9 100644 --- a/novaclient/v1_1/quotas.py +++ b/novaclient/v1_1/quotas.py @@ -21,7 +21,8 @@ class QuotaSet(base.Resource): @property def id(self): """QuotaSet does not have a 'id' attribute but base.Resource needs it - to self-refresh and QuotaSet is indexed by tenant_id""" + to self-refresh and QuotaSet is indexed by tenant_id. + """ return self.tenant_id def update(self, *args, **kwargs): diff --git a/tox.ini b/tox.ini index 9ef68cca4..d7d2b3234 100644 --- a/tox.ini +++ b/tox.ini @@ -28,6 +28,6 @@ commands = python setup.py testr --coverage --testr-args='{posargs}' downloadcache = ~/cache/pip [flake8] -ignore = E12,F841,F811,F821,H302,H403,H404 +ignore = E12,F841,F811,F821,H302,H404 show-source = True exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build