Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG : skip looking up expanduser if unicode error #3532

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

Closed
wants to merge 1 commit into from
Closed
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
BUG : skip looking up expanduser if unicode error
closes #3516 by ignoring the real problem.

The real problem seems to be in the core libary (
http://bugs.python.org/issue13207) to which the response was
'upgrade to python 3'.
  • Loading branch information
tacaswell committed Sep 18, 2014
commit 2310f82e75dd6b7ff8a47ee28d62afa62a409c9d
3 changes: 3 additions & 0 deletions lib/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,9 @@ def _get_home():
except ImportError:
# This happens on Google App Engine (pwd module is not present).
pass
except UnicodeDecodeError:
# this happens on windows with py2k with non-ascii letters in the path
pass
else:
if os.path.isdir(path):
return path
Expand Down