From b99c132bd9030883f7a3482feb5e2b38c02f4188 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 10 Nov 2014 14:38:16 +0200 Subject: Fixed AttributeError when the regular expression starts from illegal escape. --- Lib/sre_parse.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/sre_parse.py') diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py index 2be392e35b..fb622ec235 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 -- cgit v1.2.1