From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Sat, 26 Sep 2020 18:59:40 -0700 Subject: [PATCH v4 2/3] binman: Support help messages for missing blobs In-Reply-To: <85bf592d-f87d-c907-480d-46583b6ab2bd@gmail.com> References: <85bf592d-f87d-c907-480d-46583b6ab2bd@gmail.com> <20200906163910.18686-1-sjg@chromium.org> <20200906163910.18686-2-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09/09/2020 02:56, Simon Glass wrote: > On Tue, 8 Sep 2020 at 10:37, Alper Nebi Yasak 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 Applied to u-boot-dm/next, thanks!