aboutsummaryrefslogtreecommitdiff
path: root/tools/patman/commit.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-03-02 19:12:24 -0700
committerTom Rini <trini@konsulko.com>2022-03-18 19:44:45 +0000
commitfc6c663af38d2aa2c2438e4bc20227cdb3183e44 (patch)
treeb3641aa262444dbcce8cd37f5ebec57cd9357cdc /tools/patman/commit.py
parentbc30585888e27e9b80d2c9d476176f9cde5bf42c (diff)
downloadu-boot-fc6c663af38d2aa2c2438e4bc20227cdb3183e44.zip
u-boot-fc6c663af38d2aa2c2438e4bc20227cdb3183e44.tar.gz
u-boot-fc6c663af38d2aa2c2438e4bc20227cdb3183e44.tar.bz2
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/patman/commit.py')
-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 a645b22..9537de4 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