Conforming to lint code styling Fixing lint errors
Signed-off-by: Tomaz Muraus <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/912a5e80 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/912a5e80 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/912a5e80 Branch: refs/heads/trunk Commit: 912a5e806cdc1a06b85015293e570b61fccf7bb4 Parents: 44fa6eb Author: MrBasset <[email protected]> Authored: Mon Sep 21 22:56:48 2015 -0400 Committer: Tomaz Muraus <[email protected]> Committed: Fri Sep 25 12:57:51 2015 +0200 ---------------------------------------------------------------------- libcloud/common/abiquo.py | 3 ++- libcloud/common/aws.py | 15 +++++++++------ libcloud/common/base.py | 7 ++++--- libcloud/common/gandi.py | 3 ++- libcloud/compute/drivers/cloudframes.py | 3 ++- 5 files changed, 19 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/912a5e80/libcloud/common/abiquo.py ---------------------------------------------------------------------- diff --git a/libcloud/common/abiquo.py b/libcloud/common/abiquo.py index 3846e47..ab4457a 100644 --- a/libcloud/common/abiquo.py +++ b/libcloud/common/abiquo.py @@ -187,7 +187,8 @@ class AbiquoConnection(ConnectionUserAndKey, PollingConnection): host=host, port=port, url=url, timeout=timeout, retry_delay=retry_delay, - backoff=backoff, proxy_url=proxy_url) + backoff=backoff, + proxy_url=proxy_url) # This attribute stores data cached across multiple request self.cache = {} http://git-wip-us.apache.org/repos/asf/libcloud/blob/912a5e80/libcloud/common/aws.py ---------------------------------------------------------------------- diff --git a/libcloud/common/aws.py b/libcloud/common/aws.py index 5933c88..c0ac9b8 100644 --- a/libcloud/common/aws.py +++ b/libcloud/common/aws.py @@ -128,14 +128,15 @@ class AWSGenericResponse(AWSBaseResponse): class AWSTokenConnection(ConnectionUserAndKey): def __init__(self, user_id, key, secure=True, - host=None, port=None, url=None, timeout=None, proxy_url=None, token=None, - retry_delay=None, backoff=None): + host=None, port=None, url=None, timeout=None, proxy_url=None, + token=None, retry_delay=None, backoff=None): self.token = token super(AWSTokenConnection, self).__init__(user_id, key, secure=secure, host=host, port=port, url=url, timeout=timeout, retry_delay=retry_delay, - backoff=backoff, proxy_url=proxy_url) + backoff=backoff, + proxy_url=proxy_url) def add_default_params(self, params): # Even though we are adding it to the headers, we need it here too @@ -328,14 +329,16 @@ class AWSRequestSignerAlgorithmV4(AWSRequestSigner): class SignedAWSConnection(AWSTokenConnection): def __init__(self, user_id, key, secure=True, host=None, port=None, - url=None, timeout=None, proxy_url=None, token=None, retry_delay=None, - backoff=None, signature_version=DEFAULT_SIGNATURE_VERSION): + url=None, timeout=None, proxy_url=None, token=None, + retry_delay=None, backoff=None, + signature_version=DEFAULT_SIGNATURE_VERSION): super(SignedAWSConnection, self).__init__(user_id=user_id, key=key, secure=secure, host=host, port=port, url=url, timeout=timeout, token=token, retry_delay=retry_delay, - backoff=backoff, proxy_url=proxy_url) + backoff=backoff, + proxy_url=proxy_url) self.signature_version = str(signature_version) if self.signature_version == '2': http://git-wip-us.apache.org/repos/asf/libcloud/blob/912a5e80/libcloud/common/base.py ---------------------------------------------------------------------- diff --git a/libcloud/common/base.py b/libcloud/common/base.py index c513dee..4794cfc 100644 --- a/libcloud/common/base.py +++ b/libcloud/common/base.py @@ -1006,8 +1006,8 @@ class CertificateConnection(Connection): """ Base connection class which accepts a single ``cert_file`` argument. """ - def __init__(self, cert_file, secure=True, host=None, port=None, url=None, proxy_url=None, - timeout=None, backoff=None, retry_delay=None): + def __init__(self, cert_file, secure=True, host=None, port=None, url=None, + proxy_url=None, timeout=None, backoff=None, retry_delay=None): """ Initialize `cert_file`; set `secure` to an ``int`` based on passed value. @@ -1016,7 +1016,8 @@ class CertificateConnection(Connection): port=port, url=url, timeout=timeout, backoff=backoff, - retry_delay=retry_delay, proxy_url=proxy_url) + retry_delay=retry_delay, + proxy_url=proxy_url) self.cert_file = cert_file http://git-wip-us.apache.org/repos/asf/libcloud/blob/912a5e80/libcloud/common/gandi.py ---------------------------------------------------------------------- diff --git a/libcloud/common/gandi.py b/libcloud/common/gandi.py index 91c1a2b..be326f3 100644 --- a/libcloud/common/gandi.py +++ b/libcloud/common/gandi.py @@ -66,7 +66,8 @@ class GandiConnection(XMLRPCConnection, ConnectionKey): super(GandiConnection, self).__init__(key=key, secure=secure, timeout=timeout, retry_delay=retry_delay, - backoff=backoff, proxy_url=proxy_url) + backoff=backoff, + proxy_url=proxy_url) self.driver = BaseGandiDriver def request(self, method, *args): http://git-wip-us.apache.org/repos/asf/libcloud/blob/912a5e80/libcloud/compute/drivers/cloudframes.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/cloudframes.py b/libcloud/compute/drivers/cloudframes.py index 4a2f4aa..8385b59 100644 --- a/libcloud/compute/drivers/cloudframes.py +++ b/libcloud/compute/drivers/cloudframes.py @@ -142,7 +142,8 @@ class CloudFramesConnection(XMLRPCConnection, ConnectionKey): host=host, port=port, url=url, timeout=timeout, retry_delay=retry_delay, - backoff=backoff, proxy_url=proxy_url) + backoff=backoff, + proxy_url=proxy_url) self._auth = base64.b64encode( b('%s:%s' % (key, secret))).decode('utf-8') self.endpoint = url
