summaryrefslogtreecommitdiffstats
path: root/Lib/re/_compiler.py
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-06-14 10:26:20 (GMT)
committerGitHub <noreply@github.com>2023-06-14 10:26:20 (GMT)
commit67f69dba0a2adc68c631bad5d970bdd22fc05d91 (patch)
tree7d4a62db48b6e699597f01119286e0d1a740e747 /Lib/re/_compiler.py
parentfb655e0c4581ca4bed80db0a083884b29fe142d2 (diff)
downloadcpython-67f69dba0a2adc68c631bad5d970bdd22fc05d91.zip
cpython-67f69dba0a2adc68c631bad5d970bdd22fc05d91.tar.gz
cpython-67f69dba0a2adc68c631bad5d970bdd22fc05d91.tar.bz2
gh-105687: Remove deprecated objects from `re` module (#105688)
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 d8e0d2f..d0a4c55 100644
--- a/Lib/re/_compiler.py
+++ b/Lib/re/_compiler.py
@@ -101,8 +101,6 @@ def _compile(code, 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)