Author effbot
Recipients effbot, gvanrossum, sonnq
Date 2008-01-02.11:17:43
SpamBayes Score 0.00202582
Marked as misclassified No
Message-id <>
Looks like the wrong execution flags are being passed to the function
that creates the actual pattern object; the SRE compiler does the right
thing, but the engine isn't running with the right flags in the last
case.  Changing the call to _sre.compile in to:

    return _sre.compile(
        pattern, flags | p.pattern.flags, code,
        groupindex, indexgroup

should do the trick, I think.  (got no time to fix my broken Python SVN
setup right now, but if someone wants to verify this and add the
necessary tests to the test suite, be my guest).
Date User Action Args
2008-01-02 11:17:44effbotsetspambayes_score: 0.00202582 -> 0.00202582
recipients: + effbot, gvanrossum, sonnq
2008-01-02 11:17:44effbotsetspambayes_score: 0.00202582 -> 0.00202582
messageid: <>
2008-01-02 11:17:44effbotlinkissue1700 messages
2008-01-02 11:17:43effbotcreate