mirror of https://github.com/python/cpython.git
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
|
@ -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…
Reference in New Issue