8000 FIX: always decode bytes as utf-8 in AFM headers by tacaswell · Pull Request #8021 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

FIX: always decode bytes as utf-8 in AFM headers #8021

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 7 commits into from
Mar 20, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
8000 Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
FIX: always decode bytes as utf-8 in AFM headers
closes #3517
  • Loading branch information
tacaswell committed Feb 4, 2017
commit ce928591fc9ff6de73defd612b4b16beac24d4d1
10 changes: 5 additions & 5 deletions lib/matplotlib/afm.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@
def _to_int(x):
return int(float(x))


_to_float = float
if six.PY3:
def _to_str(x):
return x.decode('utf8')
else:
_to_str = str


def _to_str(x):
return x.decode('utf8')


def _to_list_of_ints(s):
Expand Down
0