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

Skip to content

Commit 5d449e5

Browse files
committed
%s -> %r else if invalid char unable to print error
1 parent 28ccfa9 commit 5d449e5

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)