diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-23 09:11:19 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-23 09:11:19 (GMT) |
commit | 662cef66d7e90ec3c391a5b5ab933c159ef009b6 (patch) | |
tree | 11da5a500cbd51d091cc5ffb25b5d892ce3c4053 /Objects/exceptions.c | |
parent | 265dce6cbbe700183228632f16bc1d4a2683c935 (diff) | |
download | cpython-662cef66d7e90ec3c391a5b5ab933c159ef009b6.zip cpython-662cef66d7e90ec3c391a5b5ab933c159ef009b6.tar.gz cpython-662cef66d7e90ec3c391a5b5ab933c159ef009b6.tar.bz2 |
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.
Diffstat (limited to 'Objects/exceptions.c')
0 files changed, 0 insertions, 0 deletions