aboutsummaryrefslogtreecommitdiff
path: root/tools/patman/command.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-02-11 13:23:18 -0700
committerTom Rini <trini@konsulko.com>2022-03-02 10:28:12 -0500
commit32cc6ae273128510cffc536fc72f260181ef1744 (patch)
treef83965c262417db03c0ef725582f7bdfc5f1aa3b /tools/patman/command.py
parentf9a719e2954473f9be1f8c14a28288f943a00dd2 (diff)
downloadu-boot-32cc6ae273128510cffc536fc72f260181ef1744.zip
u-boot-32cc6ae273128510cffc536fc72f260181ef1744.tar.gz
u-boot-32cc6ae273128510cffc536fc72f260181ef1744.tar.bz2
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.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/patman/command.py b/tools/patman/command.py
index 2435878..92c453b 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