commit | b99c132bd9030883f7a3482feb5e2b38c02f4188 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Mon Nov 10 14:38:16 2014 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Mon Nov 10 14:38:16 2014 +0200 |
tree | cf3a19d8695a6b2355c7db85c0e619fade46e46c | |
parent | ce40e1a081749387aa95c5299694961762745947 [diff] [blame] |
Fixed AttributeError when the regular expression starts from illegal escape.
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 @@ string = str(string, 'latin1') self.decoded_string = string self.index = 0 + self.next = None self.__next() def __next(self): index = self.index