8000 FIX: fix importing backend with non-ascii characters by tacaswell · Pull Request #11957 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

FIX: fix importing backend with non-ascii characters #11957

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 1 commit into from
Sep 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/matplotlib/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
_log = logging.getLogger(__name__)

backend = matplotlib.get_backend()
_backend_loading_tb = "".join(
# the `str` calls here are to make non-ascii paths work on python2
_backend_loading_tb = str("").join(
line for line in traceback.format_stack()
# Filter out line noise from importlib line.
if not line.startswith(' File "<frozen importlib._bootstrap'))
if not line.startswith(str(' File "<frozen importlib._bootstrap')))


def pylab_setup(name=None):
Expand Down
0