8000 Remove unused variables by timhoffm · Pull Request #12829 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Remove unused variables #12829

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
Nov 24, 2018
Merged

Conversation

timhoffm
Copy link
Member

PR Summary

@@ -822,7 +822,7 @@ def __setitem__(self, key, val):
"either import that binding first, or set the QT_API "
"environment variable.")
cbook.warn_deprecated(
"2.2", name=key, obj_type="rcparam", addendum=addendum)
version, name=key, obj_type="rcparam", addendum=addendum)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replaced the hard-coded value.

else:
verticesA, codesA = [], []
ddxA, ddyA = 0., 0.
verticesA, codesA, ddxA, ddyA = (
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO this way it's more clear that the whole block is just a conditional assignment of the four variables.