Update hacking version
1. update the hacking to latest, due to[1] 2. fix pep8 failed [1]: https://github.com/openstack/python-watcherclient/blob/master/HACKING.rst Change-Id: I02891ca17e2655b9567cc56b5c2c0b4fb6a96446
This commit is contained in:
parent
1186c7c34f
commit
4a1b6eaf81
@ -4,7 +4,7 @@
|
||||
|
||||
coverage!=4.4,>=4.0 # Apache-2.0
|
||||
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
||||
hacking>=1.1.0,<1.2.0 # Apache-2.0
|
||||
mock>=2.0.0 # BSD
|
||||
openstackdocstheme>=1.18.1 # Apache-2.0
|
||||
oslotest>=3.2.0 # Apache-2.0
|
||||
|
@ -391,8 +391,8 @@ class HTTPClient(VersionNegotiationMixin):
|
||||
content_type = resp.headers.get('Content-Type')
|
||||
|
||||
if (resp.status_code in (http_client.NO_CONTENT,
|
||||
http_client.RESET_CONTENT)
|
||||
or content_type is None):
|
||||
http_client.RESET_CONTENT) or
|
||||
content_type is None):
|
||||
return resp, list()
|
||||
|
||||
if 'application/json' in content_type:
|
||||
|
Loading…
x
Reference in New Issue
Block a user