Skip to content

Commit 5876c02

Browse files
committed
BUG : fix 2.6 compatbility
fix usage of decode errors arg for 2.6
1 parent b132d52 commit 5876c02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/type1font.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def _parse(self):
216216
# The spec calls this an ASCII format; in Python 2.x we could
217217
# just treat the strings and names as opaque bytes but let's
218218
# turn them into proper Unicode, and be lenient in case of high bytes.
219-
convert = lambda x: x.decode('ascii', errors='replace')
219+
convert = lambda x: x.decode('ascii', 'replace')
220220
for token, value in filtered:
221221
if token is self._name and value.startswith(b'/'):
222222
key = convert(value[1:])

0 commit comments

Comments
 (0)