diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2008-07-22 17:53:22 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2008-07-22 17:53:22 (GMT) |
commit | 22628c4d6a79e38371e383cc40702bf0935e355e (patch) | |
tree | 05a58350d5a9340d4370e2ab5e6649a664544732 /Lib/sre_parse.py | |
parent | 943f33912c243b0769023082691475012428da5a (diff) | |
download | cpython-22628c4d6a79e38371e383cc40702bf0935e355e.zip cpython-22628c4d6a79e38371e383cc40702bf0935e355e.tar.gz cpython-22628c4d6a79e38371e383cc40702bf0935e355e.tar.bz2 |
#3231: re.compile fails with some bytes patterns
Diffstat (limited to 'Lib/sre_parse.py')
-rw-r--r-- | Lib/sre_parse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py index 6e70024..ffa8902 100644 --- a/Lib/sre_parse.py +++ b/Lib/sre_parse.py @@ -200,7 +200,7 @@ class Tokenizer: except IndexError: raise error("bogus escape (end of line)") if isinstance(self.string, bytes): - char = chr(c) + c = chr(c) char = char + c self.index = self.index + len(char) self.next = char |