summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorDennis Sweeney <36520290+sweeneyde@users.noreply.github.com>2022-10-30 23:07:11 (GMT)
committerGitHub <noreply@github.com>2022-10-30 23:07:11 (GMT)
commit87b5fd9d9de11c68b9940d3a1dba902138129109 (patch)
treef874f318430bb2b3ffc0036e06c14289d3d5317a /Python/ceval.c
parent018b2483c422031ba5a6084238ab66ba44ea9fcf (diff)
downloadcpython-87b5fd9d9de11c68b9940d3a1dba902138129109.zip
cpython-87b5fd9d9de11c68b9940d3a1dba902138129109.tar.gz
cpython-87b5fd9d9de11c68b9940d3a1dba902138129109.tar.bz2
gh-98879: Remove unreachable error case from COMPARE_OP_STR_JUMP (GH-98882)
Thanks to PEP 623 changes, the comparison cannot fail.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 24af419..f2250ff 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3420,9 +3420,6 @@ handle_eval_breaker:
DEOPT_IF(!PyUnicode_CheckExact(right), COMPARE_OP);
STAT_INC(COMPARE_OP, hit);
int res = _PyUnicode_Equal(left, right);
- if (res < 0) {
- goto error;
- }
assert(oparg == Py_EQ || oparg == Py_NE);
JUMPBY(INLINE_CACHE_ENTRIES_COMPARE_OP);
NEXTOPARG();