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

Skip to content

Set packet_ends = None before using in dviread.py #10454

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 2 commits into from
Feb 15, 2018

Conversation

cclauss
Copy link

@cclauss cclauss commented Feb 14, 2018

packed_ends is used on lines 649 and 653 but it is not defined/set until line 666. This drives linters nuts because it is safer to set variables before using them.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 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

__packed_ends__ is used on lines 649 and 653 but it is not defined/set until line 666.  This drives linters nuts because it is safer to set variables before using them.
@tacaswell tacaswell added this to the v2.2.1 milestone Feb 14, 2018
@tacaswell
Copy link
Member

This currently works because the first if block is only triggered if one of the later blocks has set the state correct and also set the local variable?

@tacaswell
Copy link
Member

👍 modulo fixing the pep8 line-length issue.

@tacaswell tacaswell merged commit a20fdb9 into matplotlib:master Feb 15, 2018
@tacaswell tacaswell modified the milestones: v2.2.1, v2.2.0 Feb 15, 2018
@cclauss cclauss deleted the patch-1 branch February 15, 2018 21:09
dstansby added a commit that referenced this pull request Feb 16, 2018
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.

3 participants