commit | e0c19ddc661e56cc7e694be52d3e47f1dfe5af24 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Tue Sep 18 09:16:26 2018 +0300 |
committer | GitHub <noreply@github.com> | Tue Sep 18 09:16:26 2018 +0300 |
tree | 972122eceefcc73fac11a5caf29cdb615ebaddc8 | |
parent | 9c53fa6ad9cd23fb03867b4a1f74264c426c1772 [diff] [blame] |
bpo-34681: Rename class Pattern in sre_parse to State. (GH-9310) Also rename corresponding attributes, parameters and variables.
diff --git a/Lib/re.py b/Lib/re.py index 94d4865..68d62dc 100644 --- a/Lib/re.py +++ b/Lib/re.py
@@ -334,7 +334,7 @@ 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()