Fix E305 Errors

Story: #2001985
Change-Id: Idb9946e24e22bc64475dabb475d9cef09ee4d26b
This commit is contained in:
Julia Kreger 2018-05-08 12:29:42 -07:00
parent 530a3ed088
commit adaf9182ba
6 changed files with 7 additions and 2 deletions

View File

@ -132,5 +132,6 @@ def main():
a = conn.defineXML(libvirt_template)
print("Created machine %s with UUID %s" % (args.name, a.UUIDString()))
if __name__ == '__main__':
main()

View File

@ -330,6 +330,7 @@ class LocalLinkConnectionType(wtypes.UserType):
return None
return LocalLinkConnectionType.validate(value)
locallinkconnectiontype = LocalLinkConnectionType()

View File

@ -44,5 +44,6 @@ def main():
launcher.launch_service(server, workers=server.workers)
launcher.wait()
if __name__ == '__main__':
sys.exit(main())

View File

@ -77,6 +77,7 @@ def _convert_timestamps_to_datetimes(image_meta):
timeutils.parse_isotime(image_meta[attr]))
return image_meta
_CONVERT_PROPS = ('block_device_mapping', 'mappings')

View File

@ -266,6 +266,7 @@ def on_enter(new_state, event):
LOG.debug("Entering new state '%s' in response to event '%s'",
new_state, event)
watchers = {}
watchers['on_exit'] = on_exit
watchers['on_enter'] = on_enter

View File

@ -106,9 +106,9 @@ commands = {posargs}
[flake8]
# [W503] Line break before binary operator.
# NOTE(TheJulia): Adding E305,W605,W606,E501,F405 to the ignore list
# NOTE(TheJulia): Adding W605,W606,E501,F405 to the ignore list
# until we are able to clean them up in the code base.
ignore = E129,W503,E305,W605,W606,E501,F405
ignore = E129,W503,W605,W606,E501,F405
filename = *.py,app.wsgi
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
import-order-style = pep8