8000 FIX: always decode bytes as utf-8 in AFM headers · matplotlib/matplotlib@ce92859 · GitHub
[go: up one dir, main page]

Skip to content

Commit ce92859

Browse files
committed
FIX: always decode bytes as utf-8 in AFM headers
closes #3517
1 parent 493cb8a commit ce92859

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/afm.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@
5757
def _to_int(x):
5858
return int(float(x))
5959

60+
6061
_to_float = float
61-
if six.PY3:
62-
def _to_str(x):
63-
return x.decode('utf8')
64-
else:
65-
_to_str = str
62+
63+
64+
def _to_str(x):
65+
return x.decode('utf8')
6666

6767

6868
def _to_list_of_ints(s):

0 commit comments

Comments
 (0)
0