From 14fb3ec932834febd9929f6eefbd1a24236ec5de Mon Sep 17 00:00:00 2001 From: Mark McClain Date: Wed, 11 Jun 2014 19:47:12 -0400 Subject: [PATCH] remove pep8 E122 exemption and correct style This change removes the E122 exemption for pep8. E122 is "continuation line missing indentation or outdented" Change-Id: I4bd1e6c787648a3dfa69b514efeeff05996aabc1 Partial-Bug: 1329017 --- neutron/plugins/vmware/nsxlib/secgroup.py | 12 +++++------- .../services/vpn/device_drivers/test_cisco_ipsec.py | 4 ++-- tox.ini | 3 +-- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/neutron/plugins/vmware/nsxlib/secgroup.py b/neutron/plugins/vmware/nsxlib/secgroup.py index fa4a10ef1..d6094f2ac 100644 --- a/neutron/plugins/vmware/nsxlib/secgroup.py +++ b/neutron/plugins/vmware/nsxlib/secgroup.py @@ -123,13 +123,11 @@ def update_security_group_rules(cluster, spid, rules): def update_security_profile(cluster, spid, name): - return nsxlib.do_request(HTTP_PUT, - nsxlib._build_uri_path(SECPROF_RESOURCE, - resource_id=spid), - json.dumps({ - "display_name": utils.check_and_truncate(name) - }), - cluster=cluster) + return nsxlib.do_request( + HTTP_PUT, + nsxlib._build_uri_path(SECPROF_RESOURCE, resource_id=spid), + json.dumps({"display_name": utils.check_and_truncate(name)}), + cluster=cluster) def delete_security_profile(cluster, spid): diff --git a/neutron/tests/unit/services/vpn/device_drivers/test_cisco_ipsec.py b/neutron/tests/unit/services/vpn/device_drivers/test_cisco_ipsec.py index 562416bd4..b5da37ff5 100644 --- a/neutron/tests/unit/services/vpn/device_drivers/test_cisco_ipsec.py +++ b/neutron/tests/unit/services/vpn/device_drivers/test_cisco_ipsec.py @@ -1502,8 +1502,8 @@ class TestCiscoCsrIPsecDeviceDriverSyncStatuses(base.BaseTestCase): u'ipsec_site_connections': { u'1': {u'status': constants.ACTIVE, u'updated_pending_status': True}, - u'2': {u'status': constants.DOWN, - u'updated_pending_status': True}} + u'2': {u'status': constants.DOWN, + u'updated_pending_status': True}} }, {u'id': u'456', u'updated_pending_status': True, diff --git a/tox.ini b/tox.ini index bf2398df5..88d0fa9a2 100644 --- a/tox.ini +++ b/tox.ini @@ -40,7 +40,6 @@ commands = commands = {posargs} [flake8] -# E122 continuation line missing indentation or outdented # E125 continuation line does not distinguish itself from next logical line # E126 continuation line over-indented for hanging indent # E128 continuation line under-indented for visual indent @@ -62,7 +61,7 @@ commands = {posargs} # H405 multi line docstring summary not separated with an empty line # H904 Wrap long lines in parentheses instead of a backslash # TODO(marun) H404 multi line docstring should start with a summary -ignore = E122,E125,E126,E128,E129,E251,E265,E713,F402,F811,F812,H104,H237,H302,H304,H305,H307,H401,H402,H404,H405,H904 +ignore = E125,E126,E128,E129,E251,E265,E713,F402,F811,F812,H104,H237,H302,H304,H305,H307,H401,H402,H404,H405,H904 show-source = true builtins = _ exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,.ropeproject -- 2.45.2