pep8: enable E125 checks
Change-Id: Ic9904c80320b3bf7335d4871d509120320caf64b Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
fa53511f86
commit
faa7049c82
@ -69,7 +69,7 @@ class ParsableErrorMiddleware(object):
|
|||||||
if (state['status_code'] / 100) not in (2, 3):
|
if (state['status_code'] / 100) not in (2, 3):
|
||||||
req = webob.Request(environ)
|
req = webob.Request(environ)
|
||||||
if (req.accept.best_match(['application/json', 'application/xml'])
|
if (req.accept.best_match(['application/json', 'application/xml'])
|
||||||
== 'application/xml'):
|
== 'application/xml'):
|
||||||
try:
|
try:
|
||||||
# simple check xml is valid
|
# simple check xml is valid
|
||||||
body = [et.ElementTree.tostring(
|
body = [et.ElementTree.tostring(
|
||||||
|
2
tox.ini
2
tox.ini
@ -40,7 +40,7 @@ deps = -r{toxinidir}/requirements.txt
|
|||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E125,H301,H306
|
ignore = H301,H306
|
||||||
builtins = _
|
builtins = _
|
||||||
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools,nova_tests
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools,nova_tests
|
||||||
show-source = True
|
show-source = True
|
||||||
|
Loading…
Reference in New Issue
Block a user