]> granicus.if.org Git - python/commit
Issue #25953: re.sub() now raises an error for invalid numerical group
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 23 Oct 2016 09:12:05 +0000 (12:12 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 23 Oct 2016 09:12:05 +0000 (12:12 +0300)
commitee8337a99d55d42eec558cb862ce08ec37d5b9c6
treee050b1d538ff14e084fcbc0ca730f2a62c099119
parentcb33a01bbc933415efba1c5930ebd9237545f48a
parent662cef66d7e90ec3c391a5b5ab933c159ef009b6
Issue #25953: re.sub() now raises an error for invalid numerical group
reference in replacement template even if the pattern is not found in
the string.  Error message for invalid group reference now includes the
group index and the position of the reference.
Based on patch by SilentGhost.
Misc/NEWS