mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
PEP 8 E111 & E114 cleanup. (#20838)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user