mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
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:
parent
a93aa6dc04
commit
6522d703a1
15 changed files with 22 additions and 71 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue