mirror of
https://github.com/python/cpython.git
synced 2025-09-16 05:36:29 +00:00
bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300)
They were undocumented and never working.
This commit is contained in:
parent
da922409ac
commit
b09184bf05
8 changed files with 7 additions and 18 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue