diff options
author | Simon Glass <sjg@chromium.org> | 2022-03-05 20:18:58 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-03-18 19:24:25 -0600 |
commit | 6d427c4bcb601a0b271168f33737b53bda9b63d2 (patch) | |
tree | dfe30bc30b182a976ea92991b36aa7f84b7def01 /tools/binman/entry.py | |
parent | 17b4ffc56fbd37564099083ed784d1249911629e (diff) |
binman: Tweak collect_contents_to_file() and docs
Update the return value of this function, fix the 'create' typo and
update the documentation for clarity.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Suggested-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r-- | tools/binman/entry.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py index 85dc339726b..42320979a1e 100644 --- a/tools/binman/entry.py +++ b/tools/binman/entry.py @@ -1138,16 +1138,16 @@ features to produce new behaviours. Returns: Tuple: - bytes: Concatenated data from all the entries (or False) - str: Filename of file written (or False if no data) - str: Unique portion of filename (or False if no data) + bytes: Concatenated data from all the entries (or None) + str: Filename of file written (or None if no data) + str: Unique portion of filename (or None if no data) """ data = b'' for entry in entries: # First get the input data and put it in a file. If not available, # try later. if not entry.ObtainContents(): - return False, False, False + return None, None, None data += entry.GetData() uniq = self.GetUniqueName() fname = tools.get_output_filename(f'{prefix}.{uniq}') |