mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 14:41:23 -07:00
PEP 8 E111 & E114 cleanup. (#20838)
This commit is contained in:
parent
1609afbd12
commit
cb76200c7d
119 changed files with 339 additions and 378 deletions
|
@ -134,17 +134,17 @@ from ansible.module_utils.basic import AnsibleModule
|
|||
# match_opt
|
||||
|
||||
def match_opt(option, line):
|
||||
option = re.escape(option)
|
||||
return re.match(' *%s( |\t)*=' % option, line) \
|
||||
or re.match('# *%s( |\t)*=' % option, line) \
|
||||
or re.match('; *%s( |\t)*=' % option, line)
|
||||
option = re.escape(option)
|
||||
return re.match(' *%s( |\t)*=' % option, line) \
|
||||
or re.match('# *%s( |\t)*=' % option, line) \
|
||||
or re.match('; *%s( |\t)*=' % option, line)
|
||||
|
||||
# ==============================================================
|
||||
# match_active_opt
|
||||
|
||||
def match_active_opt(option, line):
|
||||
option = re.escape(option)
|
||||
return re.match(' *%s( |\t)*=' % option, line)
|
||||
option = re.escape(option)
|
||||
return re.match(' *%s( |\t)*=' % option, line)
|
||||
|
||||
# ==============================================================
|
||||
# do_ini
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue