Surround top-level function and class definitions with two blank lines.

This commit is contained in:
Joren Vrancken
2018-07-29 13:46:06 +02:00
committed by Toshio Kuratomi
parent 9e310558ee
commit b954917761
373 changed files with 408 additions and 28 deletions

View File

@@ -555,5 +555,6 @@ def main():
else:
module.exit_json(state=state, dest=dest, changed=changed)
if __name__ == '__main__':
main()

View File

@@ -171,5 +171,6 @@ def main():
elif p['state'] in ['absent', 'removed']:
remove_packages(module, packages)
if __name__ == '__main__':
main()

View File

@@ -634,5 +634,6 @@ def main():
module.exit_json(**result)
if __name__ == '__main__':
main()

View File

@@ -198,6 +198,9 @@ from xml.dom.minidom import parseString as parseXML
from ansible.module_utils.six import iteritems
from ansible.module_utils._text import to_native
# import module snippets
from ansible.module_utils.basic import AnsibleModule
class Package:
def __init__(self, name, prefix, version):
@@ -522,7 +525,6 @@ def main():
module.exit_json(name=name, state=state, update_cache=update_cache, **retvals)
# import module snippets
from ansible.module_utils.basic import AnsibleModule
if __name__ == "__main__":
main()