diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-06-14 10:26:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-14 10:26:20 (GMT) |
commit | 67f69dba0a2adc68c631bad5d970bdd22fc05d91 (patch) | |
tree | 7d4a62db48b6e699597f01119286e0d1a740e747 /Lib/re/_compiler.py | |
parent | fb655e0c4581ca4bed80db0a083884b29fe142d2 (diff) | |
download | cpython-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.py | 2 |
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) |