You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FIX: fix importing backend with non-ascii characters
The issue is that the lines coming out of `traceback.format_stack()`
are bytes (aka python2 str). This file uses `unicode_literals` so
the string literals are unicode. If any of the paths in the stack
have non-ascii we get UnicodeDecode exceptions when trying to convert
the byte strings to unicode with ascii.
The `str` calls will have no effect on python3 and down-cast the
unicode to bytes so the operations will work.
A better fix would be to sort out what encoding the bytes from
`format_stack` are in and convert them to unicode, but this is simpler
and is unlikely to make things worse than they were.
closesmatplotlib#11955
0 commit comments