From 5d449e545393c749a6b0fe7d2d695ab57f38e97c Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 23 Jun 2015 13:11:41 -0500 Subject: [PATCH] %s -> %r else if invalid char unable to print error --- lib/matplotlib/afm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/afm.py b/lib/matplotlib/afm.py index 79d1e6c20a16..eb6368666583 100644 --- a/lib/matplotlib/afm.py +++ b/lib/matplotlib/afm.py @@ -169,7 +169,7 @@ def _parse_header(fh): key, val, file=sys.stderr) continue except KeyError: - print('Found an unknown keyword in AFM header (was %s)' % key, + print('Found an unknown keyword in AFM header (was %r)' % key, file=sys.stderr) continue if key == b'StartCharMetrics':