diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-01-27 09:42:38 -0800 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-01-27 09:45:05 -0800 |
commit | 98f0c0424aff0e333d52b60edf636b934ededcf9 (patch) | |
tree | ebdb4998d2bd16600265be97e3bac011068689ff /commands | |
parent | 26cd1a2d9aec20ae6e22e5c6b55539b927533b7b (diff) | |
download | ansible-modules-core-98f0c0424aff0e333d52b60edf636b934ededcf9.tar.gz |
Remove str.format() usage for python2.4 compat.
Fixes #10036
Diffstat (limited to 'commands')
-rw-r--r-- | commands/command.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/commands/command.py b/commands/command.py index 2b79b327..131fc4c7 100644 --- a/commands/command.py +++ b/commands/command.py @@ -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)|$)' ) |