Fix ansible-test pylint and pep8 issues. (#24245)

* Fix pylint useless-super-delegation issues.
* Fix miscellaneous pylint issues.
* Fix PEP 8 issues.
* Fix warnings reported by PyCharm.
This commit is contained in:
Matt Clay 2017-05-03 23:19:44 +08:00 committed by GitHub
parent a93aa6dc04
commit 6522d703a1
15 changed files with 22 additions and 71 deletions

View file

@ -372,20 +372,12 @@ class Display(object):
class ApplicationError(Exception):
"""General application error."""
def __init__(self, message=None):
"""
:type message: str | None
"""
super(ApplicationError, self).__init__(message)
pass
class ApplicationWarning(Exception):
"""General application warning which interrupts normal program flow."""
def __init__(self, message=None):
"""
:type message: str | None
"""
super(ApplicationWarning, self).__init__(message)
pass
class SubprocessError(ApplicationError):