diff options
author | Simon Glass <sjg@chromium.org> | 2022-02-11 13:23:18 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-03-02 10:28:12 -0500 |
commit | 32cc6ae273128510cffc536fc72f260181ef1744 (patch) | |
tree | f83965c262417db03c0ef725582f7bdfc5f1aa3b /tools/patman/command.py | |
parent | f9a719e2954473f9be1f8c14a28288f943a00dd2 (diff) |
patman: Correct pylint errors
Fix pylint errors that can be fixed and mask those that seem to be
incorrect.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/command.py')
-rw-r--r-- | tools/patman/command.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/patman/command.py b/tools/patman/command.py index 24358784f2..92c453b5c1 100644 --- a/tools/patman/command.py +++ b/tools/patman/command.py @@ -17,13 +17,6 @@ class CommandResult: return_code: Return code from command exception: Exception received, or None if all ok """ - def __init__(self): - self.stdout = None - self.stderr = None - self.combined = None - self.return_code = None - self.exception = None - def __init__(self, stdout='', stderr='', combined='', return_code=0, exception=None): self.stdout = stdout @@ -72,6 +65,7 @@ def run_pipe(pipe_list, infile=None, outfile=None, """ if test_result: if hasattr(test_result, '__call__'): + # pylint: disable=E1102 result = test_result(pipe_list=pipe_list) if result: return result |