1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-01-23 12:37:05 +00:00

Fixed PERF102 (incorrect-dict-iterator): When using only the keys of a dict use the keys() method

This commit is contained in:
Teal Dulcet 2025-01-12 07:38:26 -08:00
parent 9896bfb765
commit 70bf676b73

View File

@ -1033,7 +1033,7 @@ def run_and_output_changes(env, pool):
if op in {"replace", "insert"}:
BufferedOutput(with_lines=cur_lines[j1:j2]).playback(out)
for category, _prev_lines in prev_status.items():
for category in prev_status.keys():
if category not in cur_status:
out.add_heading(category)
out.print_warning("This section was removed.")