From: Victor Stinner Date: Tue, 22 Nov 2016 14:23:00 +0000 (+0100) Subject: Issue #28727: Fix typo in pattern_richcompare() X-Git-Tag: v3.6.0rc1~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e670b2d5c39ce6ac72890e52e9d505f90c33ccba;p=thirdparty%2FPython%2Fcpython.git Issue #28727: Fix typo in pattern_richcompare() Typo catched by Serhiy Storchaka, thanks! --- diff --git a/Modules/_sre.c b/Modules/_sre.c index c1e9fa6e6bd4..1b7741696d0d 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -2688,7 +2688,7 @@ pattern_richcompare(PyObject *lefto, PyObject *righto, int op) cmp = (left->flags == right->flags && left->isbytes == right->isbytes - && left->codesize && right->codesize); + && left->codesize == right->codesize); if (cmp) { /* Compare the code and the pattern because the same pattern can produce different codes depending on the locale used to compile the