changeset: 105335:6b43d15fd2d7 branch: 3.6 parent: 105333:9b974f988c95 user: Victor Stinner date: Tue Nov 22 15:23:00 2016 +0100 files: Modules/_sre.c description: Issue #28727: Fix typo in pattern_richcompare() Typo catched by Serhiy Storchaka, thanks! diff -r 9b974f988c95 -r 6b43d15fd2d7 Modules/_sre.c --- a/Modules/_sre.c Tue Nov 22 13:09:39 2016 +0100 +++ b/Modules/_sre.c Tue Nov 22 15:23:00 2016 +0100 @@ -2688,7 +2688,7 @@ 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