mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-106566: Optimize (?!) in regular expressions (GH-106567)
This commit is contained in:
parent
50e3cc9748
commit
ed64204716
3 changed files with 7 additions and 1 deletions
|
@ -773,8 +773,10 @@ def _parse(source, state, verbose, nested, first=False):
|
|||
source.tell() - start)
|
||||
if char == "=":
|
||||
subpatternappend((ASSERT, (dir, p)))
|
||||
else:
|
||||
elif p:
|
||||
subpatternappend((ASSERT_NOT, (dir, p)))
|
||||
else:
|
||||
subpatternappend((FAILURE, ()))
|
||||
continue
|
||||
|
||||
elif char == "(":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue