summaryrefslogtreecommitdiffstats
path: root/Lib/sre_parse.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-11-10 12:38:16 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-11-10 12:38:16 (GMT)
commitb99c132bd9030883f7a3482feb5e2b38c02f4188 (patch)
treecf3a19d8695a6b2355c7db85c0e619fade46e46c /Lib/sre_parse.py
parentce40e1a081749387aa95c5299694961762745947 (diff)
downloadcpython-b99c132bd9030883f7a3482feb5e2b38c02f4188.zip
cpython-b99c132bd9030883f7a3482feb5e2b38c02f4188.tar.gz
cpython-b99c132bd9030883f7a3482feb5e2b38c02f4188.tar.bz2
Fixed AttributeError when the regular expression starts from illegal escape.
Diffstat (limited to 'Lib/sre_parse.py')
-rw-r--r--Lib/sre_parse.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py
index 2be392e..fb622ec 100644
--- a/Lib/sre_parse.py
+++ b/Lib/sre_parse.py
@@ -211,6 +211,7 @@ class Tokenizer:
string = str(string, 'latin1')
self.decoded_string = string
self.index = 0
+ self.next = None
self.__next()
def __next(self):
index = self.index