Commits

Guido van Rossum  committed 267ae58

Fix case where you start a new group immediately after a label.
Thanks to Ka-Ping Yee.

  • Participants
  • Parent commits 2fdba12
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Modules/regexmodule.c

 				*g++ = *o++;
 			}
 		}
-		if (*o == '[' && !escaped) {
+		else if (*o == '[' && !escaped) {
 			*n++ = *o;
 			++o;	/* eat the char following '[' */
 			*n++ = *o;