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

Fixes #10036
reviewable/pr18780/r1
Toshio Kuratomi 10 years ago
parent 26cd1a2d9a
commit 98f0c0424a

@ -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)|$)'
)

Loading…
Cancel
Save