From f36c7ec39f4e87702ce334cbb9d2b9ca530e814d Mon Sep 17 00:00:00 2001 From: Jens Kutilek Date: Tue, 8 Aug 2017 13:46:05 +0200 Subject: [PATCH] Make "unexpected character" exception ASCII-safe --- Lib/fontTools/feaLib/lexer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontTools/feaLib/lexer.py b/Lib/fontTools/feaLib/lexer.py index 6ca7a521d..2e5f38486 100644 --- a/Lib/fontTools/feaLib/lexer.py +++ b/Lib/fontTools/feaLib/lexer.py @@ -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):