[PATCH v4 2/3] binman: Support help messages for missing blobs
Alper Nebi Yasak
alpernebiyasak at gmail.com
Wed Sep 9 22:29:58 CEST 2020
On 09/09/2020 02:56, Simon Glass wrote:
> On Tue, 8 Sep 2020 at 10:37, Alper Nebi Yasak <alpernebiyasak at gmail.com> wrote:
>>
>> result = {}
>> tag = None
>> for line in my_data.decode('utf-8').splitlines():
>> m_tag = re_tag.match(line)
>> if line.startswith('#'):
>> continue
>> elif m_tag:
>> tag = m_tag.group(1)
>> result[tag] = []
>> elif tag:
>> result[tag].append(line)
>> for tag, lines in result.items():
>> result[tag] = "".join(lines).rstrip()
>> return result
>>
>
> Yes that is easier, thank you. I'll use this in v4 and perhaps you can
> reply with your sign-off.
The code fragment above is:
Signed-off-by: Alper Nebi Yasak <alpernebiyasak at gmail.com>
More information about the U-Boot
mailing list