Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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)

AltStyle によって変換されたページ (->オリジナル) /