[Python-checkins] cpython (3.6): Issue #28727: Fix typo in pattern_richcompare()
victor.stinner
python-checkins at python.org
Tue Nov 22 09:31:47 EST 2016
https://hg.python.org/cpython/rev/6b43d15fd2d7
changeset: 105335:6b43d15fd2d7
branch: 3.6
parent: 105333:9b974f988c95
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Nov 22 15:23:00 2016 +0100
summary:
Issue #28727: Fix typo in pattern_richcompare()
Typo catched by Serhiy Storchaka, thanks!
files:
Modules/_sre.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/_sre.c b/Modules/_sre.c
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list