From faa7049c822e1c1223d574a745eedf915fb99408 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 19 Jun 2013 14:54:10 +0200 Subject: [PATCH] pep8: enable E125 checks Change-Id: Ic9904c80320b3bf7335d4871d509120320caf64b Signed-off-by: Julien Danjou --- ceilometer/api/middleware.py | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ceilometer/api/middleware.py b/ceilometer/api/middleware.py index 9674e5eb9..69b6f169e 100644 --- a/ceilometer/api/middleware.py +++ b/ceilometer/api/middleware.py @@ -69,7 +69,7 @@ class ParsableErrorMiddleware(object): if (state['status_code'] / 100) not in (2, 3): req = webob.Request(environ) if (req.accept.best_match(['application/json', 'application/xml']) - == 'application/xml'): + == 'application/xml'): try: # simple check xml is valid body = [et.ElementTree.tostring( diff --git a/tox.ini b/tox.ini index bf866c4e8..c76e187ec 100644 --- a/tox.ini +++ b/tox.ini @@ -40,7 +40,7 @@ deps = -r{toxinidir}/requirements.txt commands = {posargs} [flake8] -ignore = E125,H301,H306 +ignore = H301,H306 builtins = _ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools,nova_tests show-source = True