8000 Catch exception for PyPy by gabriel-munteanu · Pull Request #8803 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Catch exception for PyPy #8803

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 4 commits into from
Jun 27, 2017
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
6 changes: 4 additions & 2 deletions lib/matplotlib/cbook/deprecation.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,10 @@ def deprecate(obj, message=message, name=name, alternative=alternative,
def finalize(wrapper, new_doc):
try:
obj.__doc__ = new_doc
except AttributeError:
pass # cls.__doc__ is not writeable on Py2.
except (AttributeError, TypeError):
# cls.__doc__ is not writeable on Py2.
# TypeError occurs on PyPy
pass
obj.__init__ = wrapper
return obj
else:
Expand Down
0