
27 Sep
2020
27 Sep
'20
3:59 a.m.
On 09/09/2020 02:56, Simon Glass wrote:
On Tue, 8 Sep 2020 at 10:37, Alper Nebi Yasak alpernebiyasak@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@gmail.com
Applied to u-boot-dm/next, thanks!