Skip to content

Conversation

@camporter
Copy link
Member

@camporter camporter commented Sep 24, 2019

The latest travis build is failing due to new pylint rules.

  • Replace unnecessary list comprehensions with list(iterable)
  • Remove unnecessary else conditions.
  • Update some pylint rule disables and move the traceback import up.

More information: https://github.com/PyCQA/pylint/blob/pylint-2.4.0/doc/whatsnew/2.4.rst

raise exceptions.CLIAbort('Aborted.')
env.fout('Firewall updated!')
raise exceptions.CLIAbort('Aborted.')
env.fout('Firewall updated!')
Copy link
Member Author

Choose a reason for hiding this comment

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

This previously wasn't printed. I figure it might still be nice to have.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 93.684% when pulling f782312 on camporter:fix_pylint_2.4_issues into 29759b4 on softlayer:master.

@allmightyspiff allmightyspiff added the Core Issues dealing with core functionality label Sep 25, 2019
Copy link
Member

@allmightyspiff allmightyspiff left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for this :)

@allmightyspiff allmightyspiff merged commit 718c833 into softlayer:master Sep 25, 2019
@camporter camporter deleted the fix_pylint_2.4_issues branch September 25, 2019 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Core Issues dealing with core functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants