summaryrefslogtreecommitdiff
path: root/Lib/re.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-09-18 09:16:26 +0300
committerGitHub <noreply@github.com>2018-09-18 09:16:26 +0300
commite0c19ddc661e56cc7e694be52d3e47f1dfe5af24 (patch)
tree972122eceefcc73fac11a5caf29cdb615ebaddc8 /Lib/re.py
parent9c53fa6ad9cd23fb03867b4a1f74264c426c1772 (diff)
downloadcpython-git-e0c19ddc661e56cc7e694be52d3e47f1dfe5af24.tar.gz
bpo-34681: Rename class Pattern in sre_parse to State. (GH-9310)
Also rename corresponding attributes, parameters and variables.
Diffstat (limited to 'Lib/re.py')
-rw-r--r--Lib/re.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/re.py b/Lib/re.py
index 94d486579e..68d62dc2a9 100644
--- a/Lib/re.py
+++ b/Lib/re.py
@@ -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()