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