mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Fixed error position for the backslash at the end of regex pattern.
This commit is contained in:
@@ -225,7 +225,8 @@ class Tokenizer:
|
||||
try:
|
||||
char += self.decoded_string[index]
|
||||
except IndexError:
|
||||
raise self.error("bogus escape (end of line)") from None
|
||||
raise error("bogus escape (end of line)",
|
||||
self.string, len(self.string) - 1) from None
|
||||
self.index = index + 1
|
||||
self.next = char
|
||||
def match(self, char):
|
||||
|
||||
Reference in New Issue
Block a user