diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-11-10 12:38:16 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-11-10 12:38:16 (GMT) |
commit | b99c132bd9030883f7a3482feb5e2b38c02f4188 (patch) | |
tree | cf3a19d8695a6b2355c7db85c0e619fade46e46c /Lib/sre_parse.py | |
parent | ce40e1a081749387aa95c5299694961762745947 (diff) | |
download | cpython-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.py | 1 |
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 |