Skip to content

Commit 439660c

Browse files
committed
Fix AFM kerning parsing on Python 3.x
1 parent 45493c4 commit 439660c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/afm.py

+1-1
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)