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

Appearance settings

Commit 3de7046

Browse filesBrowse 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
Copy full SHA for 3de7046

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/afm.py

Copy file name to clipboardExpand all lines: lib/matplotlib/afm.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.