1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Remove str.format() usage for python2.4 compat.

Fixes #10036
This commit is contained in:
Toshio Kuratomi 2015-01-27 09:42:38 -08:00 committed by Matt Clay
parent 09082e6e7f
commit 84f27cfa68

View file

@ -127,9 +127,8 @@ OPTIONS = {'chdir': None,
# the line is reached
OPTIONS_REGEX = '|'.join(OPTIONS.keys())
PARAM_REGEX = re.compile(
r'(^|\s)({options_regex})=(?P<quote>[\'"])?(.*?)(?(quote)(?<!\\)(?P=quote))((?<!\\)(?=\s)|$)'.format(
options_regex=OPTIONS_REGEX
)
r'(^|\s)(' + OPTIONS_REGEX +
r')=(?P<quote>[\'"])?(.*?)(?(quote)(?<!\\)(?P=quote))((?<!\\)(?=\s)|$)'
)