mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-34681: Rename class Pattern in sre_parse to State. (GH-9310)
Also rename corresponding attributes, parameters and variables.
This commit is contained in:
parent
9c53fa6ad9
commit
e0c19ddc66
3 changed files with 26 additions and 26 deletions
|
@ -334,7 +334,7 @@ class Scanner:
|
|||
self.lexicon = lexicon
|
||||
# combine phrases into a compound pattern
|
||||
p = []
|
||||
s = sre_parse.Pattern()
|
||||
s = sre_parse.State()
|
||||
s.flags = flags
|
||||
for phrase, action in lexicon:
|
||||
gid = s.opengroup()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue