aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/re/_parser.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-04-26 21:07:25 +0300
committerGitHub <noreply@github.com>2022-04-26 21:07:25 +0300
commitf703c96cf08a0d65e718e7acfb043cbc49812a22 (patch)
treecae575ff8bf54cd1ea44867be9d20c6ff4dd035d /Lib/re/_parser.py
parent1af871eeee4a01cc21a6960d087e9ab8ce4c9f4d (diff)
downloadcpython-f703c96cf08a0d65e718e7acfb043cbc49812a22.tar.gz
cpython-f703c96cf08a0d65e718e7acfb043cbc49812a22.zip
gh-91870: Remove unsupported SRE opcode CALL (GH-91872)
It was initially added to support atomic groups, but that support was never fully implemented, and CALL was only left in the compiler, but not interpreter and parser. ATOMIC_GROUP is now used to support atomic groups.
Diffstat (limited to 'Lib/re/_parser.py')
-rw-r--r--Lib/re/_parser.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/re/_parser.py b/Lib/re/_parser.py
index b864bf2b108..933d51589f4 100644
--- a/Lib/re/_parser.py
+++ b/Lib/re/_parser.py
@@ -183,10 +183,6 @@ class SubPattern:
j = max(j, h)
lo = lo + i
hi = hi + j
- elif op is CALL:
- i, j = av.getwidth()
- lo = lo + i
- hi = hi + j
elif op is ATOMIC_GROUP:
i, j = av.getwidth()
lo = lo + i