From 439660c5a57becda29af726adf2361fdc952671c Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Mon, 11 Jun 2012 15:49:31 -0400 Subject: [PATCH] Fix AFM kerning parsing on Python 3.x --- lib/matplotlib/afm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/afm.py b/lib/matplotlib/afm.py index 7d55dce0f8d5..c1f56598f820 100644 --- a/lib/matplotlib/afm.py +++ b/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') pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy