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

Pylint #197

Merged
merged 4 commits into from Sep 18, 2016
Merged

Pylint #197

merged 4 commits into from Sep 18, 2016

Conversation

ghost
Copy link

@ghost ghost commented Aug 2, 2016

More pylint fixes. I partially fixed unsued variables, but we have to decide how to mark unused variables in iteration, unpacking and list comprehension. By default Pylint has regexp "$|dummy" for which names unused variables check is ignored. I prefer to save _ for future, because it is usually used for translations. And dummy sounds weirf ro me. I can configure pylint with any regexp. Maybe '^ignore', '^unused_', or just '^_' prefixes?

@ghost
Copy link
Author

ghost commented Aug 31, 2016

Any updates to this?

Bare excepts should not be used, because they may hide system exceptions such as KeyboardInterupts or SystemExits.
This commit removes some unused variables (except those in iterations, list comprehensions and used for unpacking)
@ghost
Copy link
Author

ghost commented Aug 31, 2016

I rebased and updated commits

@rthalley rthalley merged commit 8737801 into rthalley:master Sep 18, 2016
nrhall pushed a commit to nrhall/dnspython that referenced this pull request Jun 23, 2020
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