[riot-notifications] [RIOT-OS/RIOT] ci/flake8: fix some issues found by static-tests ran on master (#15720)

Martine Lenders notifications at github.com
Thu Jan 7 19:13:29 CET 2021

@miri64 commented on this pull request.

> +def list_until(trace_list, cond):
+    return trace_list[:([i for i, e in enumerate(trace_list) if cond(e)][0])]

Though come to think of it: list should probably be fine as well, as the casting function `list` is not a keyword, but some linters might complain ;-).

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210107/183fa027/attachment.htm>

More information about the notifications mailing list