8000 Fix AFM kerning parsing on Python 3.x by mdboom · Pull Request #946 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Fix AFM kerning parsing on Python 3.x #946

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 12, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix AFM kerning parsing on Python 3.x
  • Loading branch information
mdboom committed Jun 11, 2012
commit 439660c5a57becda29af726adf2361fdc952671c
2 changes: 1 addition & 1 deletion lib/matplotlib/afm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
0