diff options
author | Roman Vasilets <rvasilets@mirantis.com> | 2014-11-20 16:45:09 +0200 |
---|---|---|
committer | Roman Vasilets <rvasilets@mirantis.com> | 2015-08-16 07:21:13 +0000 |
commit | 2008c55f2621d3608c38d9e270f84173c15e270c (patch) | |
tree | 38a089d2f2e628199f47628fe18fc724e7347344 /glance/tests/stubs.py | |
parent | 667331b666ff29e38ac74c86bcd87640288d4c12 (diff) | |
download | glance-2008c55f2621d3608c38d9e270f84173c15e270c.tar.gz |
Don't use slashes for long lines - use parentheses instead
According to the OpenStack Style Guidelines [1] it is prefered to wrap
long lines in parentheses and not a backslash for line continuation. As
we are following those guidelines in our project - this patch replaces
backslash with parentheses for line continuation.
_[1] http://docs.openstack.org/developer/hacking/#general
Co-Authored-By: Roman Vasilets <rvasilets@mirantis.com>
Co-Authored-By: Kamil Rykowski <kamil.rykowski@intel.com>
Change-Id: I1743a539703c964277b0e8da203ee46bc8014fb5
Closes-bug: 1394605
Diffstat (limited to 'glance/tests/stubs.py')
-rw-r--r-- | glance/tests/stubs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glance/tests/stubs.py b/glance/tests/stubs.py index 957905140..89394a9e5 100644 --- a/glance/tests/stubs.py +++ b/glance/tests/stubs.py @@ -133,8 +133,8 @@ def stub_out_registry_and_store_server(stubs, base_dir, **kwargs): def endheaders(self): hl = [i.lower() for i in self.req.headers.keys()] assert not ('content-length' in hl and - 'transfer-encoding' in hl), \ - 'Content-Length and Transfer-Encoding are mutually exclusive' + 'transfer-encoding' in hl), ( + 'Content-Length and Transfer-Encoding are mutually exclusive') def send(self, data): # send() is called during chunked-transfer encoding, and |