Skip to content

Commit 70bf676

Browse files
committed
Fixed PERF102 (incorrect-dict-iterator): When using only the keys of a dict use the keys() method
1 parent 9896bfb commit 70bf676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

management/status_checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ def stringify(lines):
10331033
if op in {"replace", "insert"}:
10341034
BufferedOutput(with_lines=cur_lines[j1:j2]).playback(out)
10351035

1036-
for category, _prev_lines in prev_status.items():
1036+
for category in prev_status.keys():
10371037
if category not in cur_status:
10381038
out.add_heading(category)
10391039
out.print_warning("This section was removed.")

0 commit comments

Comments
 (0)