Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4a0af53

Browse files
committed
Merge pull request #4551 from mdipierro/master
FIX: handle printing warning for non-ascii in afm headers
2 parents 091d27c + 5d449e5 commit 4a0af53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/afm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def _parse_header(fh):
169169
key, val, file=sys.stderr)
170170
continue
171171
except KeyError:
172-
print('Found an unknown keyword in AFM header (was %s)' % key,
172+
print('Found an unknown keyword in AFM header (was %r)' % key,
173173
file=sys.stderr)
174174
continue
175175
if key == b'StartCharMetrics':

0 commit comments

Comments
 (0)