From: Guido van Rossum Date: Wed, 13 Aug 1997 16:35:04 +0000 (+0000) Subject: Fix bug with \< (AMK). X-Git-Tag: v1.5a3~82 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=abed54ab4aa8ce5a1c4b413f1273dc8bde687297;p=thirdparty%2FPython%2Fcpython.git Fix bug with \< (AMK). --- diff --git a/Modules/regexpr.c b/Modules/regexpr.c index 663e1de00a02..4ea6a3e60188 100644 --- a/Modules/regexpr.c +++ b/Modules/regexpr.c @@ -1884,7 +1884,7 @@ int re_match(regexp_t bufp, { if (text == textend) goto fail; - if (SYNTAX(*text) & Sword) + if (!(SYNTAX(*text) & Sword)) goto fail; if (text == textstart) goto continue_matching;