mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Fix case where you start a new group immediately after a label.
Thanks to Ka-Ping Yee.
This commit is contained in:
parent
c148cd6cdd
commit
0cbaff440d
1 changed files with 1 additions and 1 deletions
|
@ -456,7 +456,7 @@ symcomp(pattern, gdict)
|
|||
*g++ = *o++;
|
||||
}
|
||||
}
|
||||
if (*o == '[' && !escaped) {
|
||||
else if (*o == '[' && !escaped) {
|
||||
*n++ = *o;
|
||||
++o; /* eat the char following '[' */
|
||||
*n++ = *o;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue