mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-105687: Remove deprecated objects from re
module (#105688)
This commit is contained in:
parent
fb655e0c45
commit
67f69dba0a
9 changed files with 13 additions and 56 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue