summaryrefslogtreecommitdiffstats
path: root/Modules/regexmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/regexmodule.c')
-rw-r--r--Modules/regexmodule.c2
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;