mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
#3231: re.compile fails with some bytes patterns
This commit is contained in:
parent
943f33912c
commit
22628c4d6a
3 changed files with 26 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue