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

[Backport][ipa-4-7] Fixed errors newly exposed by pylint 2.4.0 #3750

Closed

Conversation

flo-renaud
Copy link
Contributor

This is a manual backport of PR #3727 to ipa-4-7 branch.

Newest Pylint introduced additional checks [1]:

- import-outside-toplevel [2]

> This check warns when modules are imported from places other
than a module toplevel, e.g. inside a function or a class.

- no-else-continue [3]

> These checks highlight unnecessary else and elif blocks after
break and continue statements.

- unnecessary-comprehension [4]

> This check is emitted when pylint finds list-, set- or
dict-comprehensions, that are unnecessary and can be rewritten
with the list-, set- or dict-constructors.

[1] https://github.com/PyCQA/pylint/blob/pylint-2.4.0/doc/whatsnew/2.4.rst
[2] pylint-dev/pylint#3067
[3] pylint-dev/pylint#2327
[4] pylint-dev/pylint#2905

Fixes: https://pagure.io/freeipa/issue/8077
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
@flo-renaud flo-renaud added ack Pull Request approved, can be merged pushed Pull Request has already been pushed labels Sep 30, 2019
@flo-renaud
Copy link
Contributor Author

ipa-4-7:

  • 1248050 Fixed errors newly exposed by pylint 2.4.0

@flo-renaud flo-renaud closed this Sep 30, 2019
@flo-renaud flo-renaud deleted the backport_pr3727_ipa-4-7 branch September 30, 2019 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
2 participants