Commit 826e9d99 authored by Christian Boltz's avatar Christian Boltz

fix "dictionary changed size during iteration" in cleanprof.py

delete_net_duplicates()
Acked-by: default avatarSeth Arnold <seth.arnold@canonical.com>
parent 3a510652
......@@ -144,7 +144,7 @@ def delete_net_duplicates(netrules, netrules_other, same_profile=True):
netrules_other['rule'].pop(fam)
deleted += 1
else:
for sock_type in netrules_other['rule'][fam].keys():
for sock_type in list(netrules_other['rule'][fam].keys()):
if netrules['rule'].get(fam, False):
if netrules['rule'][fam].get(sock_type, False):
if not same_profile:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment