diff options
author | Guido van Rossum <guido@python.org> | 1996-10-23 17:53:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-10-23 17:53:06 (GMT) |
commit | 0cbaff440dffafab29f9b83eb47dd73733a0df2f (patch) | |
tree | 0041110bb1ed42e51d8ffeb8bc69e094315beb22 /Modules/regexmodule.c | |
parent | c148cd6cdde0bb1d67d69b2424cb22ba9ccb4110 (diff) | |
download | cpython-0cbaff440dffafab29f9b83eb47dd73733a0df2f.zip cpython-0cbaff440dffafab29f9b83eb47dd73733a0df2f.tar.gz cpython-0cbaff440dffafab29f9b83eb47dd73733a0df2f.tar.bz2 |
Fix case where you start a new group immediately after a label.
Thanks to Ka-Ping Yee.
Diffstat (limited to 'Modules/regexmodule.c')
-rw-r--r-- | Modules/regexmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c index 6f566c3..eb63f37 100644 --- a/Modules/regexmodule.c +++ b/Modules/regexmodule.c @@ -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; |