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:
parent
9098eac372
commit
d9825a64aa
@ -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('.'))
|
||||
)
|
||||
)
|
||||
|
||||
|
3
tox.ini
3
tox.ini
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user