summaryrefslogtreecommitdiff
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorBrandt Bucher <brandt@python.org>2021-11-15 08:58:23 -0800
committerGitHub <noreply@github.com>2021-11-15 08:58:23 -0800
commitec382fac0db6d9159c2d3496a70b7a605545957e (patch)
tree0b66f6d45808700c7597e9db677434091653c70b /Python/ceval.c
parent822c3dcce3996e411c1ff5c432c6ac7d2845cfd6 (diff)
downloadcpython-git-ec382fac0db6d9159c2d3496a70b7a605545957e.tar.gz
bpo-45636: Remove the old %-formatting fast-path (GH-29532)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 0b24cbdcc2..e808aeed73 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -4711,14 +4711,6 @@ check_eval_breaker:
res = PyNumber_Multiply(lhs, rhs);
break;
case NB_REMAINDER:
- if (PyUnicode_CheckExact(lhs) &&
- (!PyUnicode_Check(rhs) || PyUnicode_CheckExact(rhs)))
- {
- // bpo-28598: Fast path for string formatting (but not
- // if the RHS is a str subclass).
- res = PyUnicode_Format(lhs, rhs);
- break;
- }
res = PyNumber_Remainder(lhs, rhs);
break;
case NB_OR: