summaryrefslogtreecommitdiffstats
path: root/Lib/re/_compiler.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-04-06 16:53:50 (GMT)
committerGitHub <noreply@github.com>2022-04-06 16:53:50 (GMT)
commitb09184bf05b07b77c5ecfedd4daa846be3cbf0a9 (patch)
tree55859571882a7468d2d5ab33288b16ca1536776b /Lib/re/_compiler.py
parentda922409ac3e65c6bf2911401c7dfdf8ee6e0036 (diff)
downloadcpython-b09184bf05b07b77c5ecfedd4daa846be3cbf0a9.zip
cpython-b09184bf05b07b77c5ecfedd4daa846be3cbf0a9.tar.gz
cpython-b09184bf05b07b77c5ecfedd4daa846be3cbf0a9.tar.bz2
bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300)
They were undocumented and never working.
Diffstat (limited to 'Lib/re/_compiler.py')
-rw-r--r--Lib/re/_compiler.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/re/_compiler.py b/Lib/re/_compiler.py
index bedd4b8..5b4c4a3 100644
--- a/Lib/re/_compiler.py
+++ b/Lib/re/_compiler.py
@@ -147,8 +147,6 @@ def _compile(data, pattern, flags):
else:
emit(ANY)
elif op in REPEATING_CODES:
- if flags & SRE_FLAG_TEMPLATE:
- raise error("internal: unsupported template operator %r" % (op,))
if _simple(av[2]):
emit(REPEATING_CODES[op][2])
skip = _len(code); emit(0)