summaryrefslogtreecommitdiffstats
path: root/Lib/re/_compiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/re/_compiler.py')
-rw-r--r--Lib/re/_compiler.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/re/_compiler.py b/Lib/re/_compiler.py
index e30740b..d8e0d2f 100644
--- a/Lib/re/_compiler.py
+++ b/Lib/re/_compiler.py
@@ -100,13 +100,6 @@ def _compile(code, pattern, flags):
emit(ANY_ALL)
else:
emit(ANY)
- elif op is POSSESSIVE_REPEAT:
- # gh-106052: Possessive quantifiers do not work when the
- # subpattern contains backtracking, i.e. "(?:ab?c)*+".
- # Implement it as equivalent greedy qualifier in atomic group.
- p = [(MAX_REPEAT, av)]
- p = [(ATOMIC_GROUP, p)]
- _compile(code, p, flags)
elif op in REPEATING_CODES:
if flags & SRE_FLAG_TEMPLATE:
raise error("internal: unsupported template operator %r" % (op,))