Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix AFM kerning parsing on Python 3.x #946

Merged
merged 1 commit into from

3 participants

@mdboom
Owner

No description provided.

@jkseppan
Collaborator

Looks good to me.

@pelson
Collaborator

+1

@mdboom mdboom merged commit 3de7046 into matplotlib:master
@mdboom mdboom deleted the mdboom:afm-kerning-py3 branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 11, 2012
  1. @mdboom
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/matplotlib/afm.py
View
2  lib/matplotlib/afm.py
@@ -220,7 +220,7 @@ def _parse_kern_pairs(fh):
vals = line.split()
if len(vals)!=4 or vals[0]!=b'KPX':
raise RuntimeError('Bad kern pairs line: %s'%line)
- c1, c2, val = vals[1], vals[2], _to_float(vals[3])
+ c1, c2, val = _to_str(vals[1]), _to_str(vals[2]), _to_float(vals[3])
d[(c1,c2)] = val
raise RuntimeError('Bad kern pairs parse')
Something went wrong with that request. Please try again.