diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-04-06 16:53:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-06 16:53:50 (GMT) |
commit | b09184bf05b07b77c5ecfedd4daa846be3cbf0a9 (patch) | |
tree | 55859571882a7468d2d5ab33288b16ca1536776b /Lib/re/_compiler.py | |
parent | da922409ac3e65c6bf2911401c7dfdf8ee6e0036 (diff) | |
download | cpython-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.py | 2 |
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) |