acc2daf pylint: Fix modified-iterating-list

2 files Authored by slev 2 years ago, Committed by frenaud 2 years ago,
    pylint: Fix modified-iterating-list
    > Emitted when items are added or removed to a list being iterated
    through. Doing so can result in unexpected behaviour, that is why it is
    preferred to use a copy of the list.
    > Code that modifies a collection while iterating over that same
    collection can be tricky to get right. Instead, it is usually more
    straight-forward to loop over a copy of the collection or to create a
    new collection
    Signed-off-by: Stanislav Levin <>
    Reviewed-By: Stanislav Levin <>
file modified
+7 -4