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':