Skip to content
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

PEP8 fixes on type1font.py #1349

Merged
merged 2 commits into from Oct 11, 2012
Merged

PEP8 fixes on type1font.py #1349

merged 2 commits into from Oct 11, 2012

Conversation

NelleV
Copy link
Member

@NelleV NelleV commented Oct 9, 2012

PEP8 fixes on the module type1font.

Thanks,
N

@@ -146,7 +149,8 @@ def _tokens(cls, text):
"""
pos = 0
while pos < len(text):
match = cls._comment.match(text[pos:]) or cls._whitespace.match(text[pos:])
match = cls._comment.match(text[pos:]) or \
cls._whitespace.match(text[pos:])
Copy link
Member

Choose a reason for hiding this comment

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

Temporary variable > trailing backslash.

@@ -146,7 +149,8 @@ def _tokens(cls, text):
"""
pos = 0
while pos < len(text):
match = cls._comment.match(text[pos:]) or cls._whitespace.match(text[pos:])
match = (cls._comment.match(text[pos:]) or
cls._whitespace.match(text[pos:]))
Copy link
Member

Choose a reason for hiding this comment

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

Or brackets. Good thinking.

@dmcdougall
Copy link
Member

+1.

@pelson
Copy link
Member

pelson commented Oct 10, 2012

+1

dmcdougall added a commit that referenced this pull request Oct 11, 2012
@dmcdougall dmcdougall merged commit 4da2b4a into matplotlib:master Oct 11, 2012
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.

None yet

3 participants