Fix style error E251

E251: Unexpected spaces around keyword / parameter equals

Change-Id: I4eb2bd9b449236cbf1a0b93be219e7818d52f48e
Implements: blueprint new-hacking-style-rules
This commit is contained in:
Jordan Cazamias 2014-06-18 12:59:32 -05:00
parent 9098eac372
commit d9825a64aa
2 changed files with 5 additions and 7 deletions

View File

@ -527,11 +527,10 @@ class PowerDNSBackend(base.Backend):
.where(and_(models.Record.__table__.c.type == "SOA",
models.Record.__table__.c.content.like
("%s%%" % old_server_name)))
.values(content=
func.replace(
models.Record.__table__.c.content,
old_server_name,
server['name'].rstrip('.'))
.values(content=func.replace(
models.Record.__table__.c.content,
old_server_name,
server['name'].rstrip('.'))
)
)

View File

@ -44,9 +44,8 @@ commands = {posargs}
# H904 Wrap long lines in parentheses instead of a backslash
# E126 continuation line over-indented for hanging indent
# E128 continuation line under-indented for visual indent
# E251 unexpected spaces around keyword / parameter equals
# E265 Block comment should start with '# '
ignore = H104,H302,H305,H306,H307,H401,H402,H404,H405,H904,E126,E128,E251,E265
ignore = H104,H302,H305,H306,H307,H401,H402,H404,H405,H904,E126,E128,E265
builtins = _
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*openstack/deprecated*,*lib/python*,*egg,build,tools