8000 pep8ify a couple of variable names. by anntzer · Pull Request #14273 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

pep8ify a couple of variable names. #14273

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
May 22, 2019
Merged

Conversation

anntzer
Copy link
Contributor
@anntzer anntzer commented May 20, 2019

The deleted block in backend_pdf
(if (width > paperWidth or height > paperHeight) and isEPSF:)
can never be triggered as it's in the else clause of an if isEPSF
just above. Looks like this came in in 946c5f2 (2009) and no one ever
complained about the missing log, so I think it can just be deleted.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@@ -892,7 +892,7 @@ def _print_figure(
metadata must be a dictionary. Currently, only the value for
the key 'Creator' is used.
"""
isEPSF = format == 'eps'
is_epsf = format == 'eps'
Copy link
Member

Choose a reason for hiding this comment

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

Whatever the 'f' stands for...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

looks like just an alternate extension for eps... https://en.wikipedia.org/wiki/Encapsulated_PostScript

Copy link
Member

Choose a reason for hiding this comment

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

Would change to is_eps then. It‘s equal, more common, and the string we use for the format.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

The deleted block in backend_pdf
(`if (width > paperWidth or height > paperHeight) and isEPSF:`)
can never be triggered as it's in the `else` clause of an `if isEPSF`
just above.  Looks like this came in in 946c5f2 (2009) and no one ever
complained about the missing log, so I think it can just be deleted.
@efiring efiring merged commit 0b8544b into matplotlib:master May 22, 2019
@anntzer anntzer deleted the pep8var branch May 22, 2019 21:47
@QuLogic QuLogic added this to the v3.2.0 milestone May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0