bpo-34681: Rename class Pattern in sre_parse to State. (GH-9310)

Also rename corresponding attributes, parameters and variables.
This commit is contained in:
Serhiy Storchaka 2018-09-18 09:16:26 +03:00 committed by GitHub
parent 9c53fa6ad9
commit e0c19ddc66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 26 deletions

View file

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