]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
patman: Declare the future Series memory
authorSimon Glass <sjg@chromium.org>
Sun, 23 Apr 2023 18:16:00 +0000 (06:16 +1200)
committerTom Rini <trini@konsulko.com>
Sun, 23 Apr 2023 18:24:41 +0000 (14:24 -0400)
This member is used in series.MakeCcFile() so should be declared in the
Series class.

Add a declaration to silence the warning.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/commit.py

index 9537de43d391e803d09ade7c7c620d61c1253ed0..684225c0e60d41552742a49da4c268db360bbb43 100644 (file)
@@ -29,6 +29,8 @@ class Commit:
             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
+        future (concurrent.futures.Future): Future object for processing this
+            commit, or None
     """
     def __init__(self, hash):
         self.hash = hash
@@ -42,6 +44,7 @@ class Commit:
         self.rtags = collections.defaultdict(set)
         self.warn = []
         self.patch = ''
+        self.future = None
 
     def __str__(self):
         return self.subject