summaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-01-27 09:42:38 -0800
committerToshio Kuratomi <toshio@fedoraproject.org>2015-01-27 09:45:05 -0800
commit98f0c0424aff0e333d52b60edf636b934ededcf9 (patch)
treeebdb4998d2bd16600265be97e3bac011068689ff /commands
parent26cd1a2d9aec20ae6e22e5c6b55539b927533b7b (diff)
downloadansible-modules-core-98f0c0424aff0e333d52b60edf636b934ededcf9.tar.gz
Remove str.format() usage for python2.4 compat.
Fixes #10036
Diffstat (limited to 'commands')
-rw-r--r--commands/command.py5
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)|$)'
)