gh-105687: Remove deprecated objects from re module (#105688)

This commit is contained in:
Nikita Sobolev 2023-06-14 13:26:20 +03:00 committed by GitHub
parent fb655e0c45
commit 67f69dba0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 13 additions and 56 deletions

View file

@ -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)