Make "unexpected character" exception ASCII-safe
This commit is contained in:
parent
a1629fa52b
commit
f36c7ec39f
@ -155,7 +155,7 @@ class Lexer(object):
|
|||||||
else:
|
else:
|
||||||
raise FeatureLibError("Expected '\"' to terminate string",
|
raise FeatureLibError("Expected '\"' to terminate string",
|
||||||
location)
|
location)
|
||||||
raise FeatureLibError("Unexpected character: '%s'" % cur_char,
|
raise FeatureLibError("Unexpected character: %r" % cur_char,
|
||||||
location)
|
location)
|
||||||
|
|
||||||
def scan_over_(self, valid):
|
def scan_over_(self, valid):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user