8000 Merge pull request #946 from mdboom/afm-kerning-py3 · matplotlib/matplotlib@3de7046 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3de7046

Browse files
committed
Merge pull request #946 from mdboom/afm-kerning-py3
Fix AFM kerning parsing on Python 3.x
2 parents 45493c4 + 439660c commit 3de7046

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
@@ -220,7 +220,7 @@ def _parse_kern_pairs(fh):
220220
vals = line.split()
221221
if len(vals)!=4 or vals[0]!=b'KPX':
222222
raise RuntimeError('Bad kern pairs line: %s'%line)
223-
c1, c2, val = vals[1], vals[2], _to_float(vals[3])
223+
c1, c2, val = _to_str(vals[1]), _to_str(vals[2]), _to_float(vals[3])
224224
d[(c1,c2)] = val
225225
raise RuntimeError('Bad kern pairs parse')
226226

0 commit comments

Comments
 (0)
0