summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-03-03 05:12:24 +0300
committerSimon Glass <sjg@chromium.org>2022-03-19 04:24:24 +0300
commit04fce6ff705c455241a180495043c8cd4c4ad81e (patch)
treef36af2df6c87f1eef4d353ee1e0cec9251850add /tools
parent79e1d289b71aec48ce765513eaeb5c12992fa348 (diff)
downloadu-boot-04fce6ff705c455241a180495043c8cd4c4ad81e.tar.xz
patman: Define Commit.path in the constructor
It is good practice to init all variables in the constructor and pylint sometimes checks this. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/patman/commit.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/patman/commit.py b/tools/patman/commit.py
index a645b22d08..9537de43d3 100644
--- a/tools/patman/commit.py
+++ b/tools/patman/commit.py
@@ -28,6 +28,7 @@ class Commit:
key: rtag type (e.g. 'Reviewed-by')
value: Set of people who gave that rtag, each a name/email string
warn: List of warnings for this commit, each a str
+ patch (str): Filename of the patch file for this commit
"""
def __init__(self, hash):
self.hash = hash
@@ -40,6 +41,7 @@ class Commit:
self.change_id = None
self.rtags = collections.defaultdict(set)
self.warn = []
+ self.patch = ''
def __str__(self):
return self.subject