Commit 66ba09e
committed
boot-qemu.py: Use contextlib.suppress() instead of try except
As suggested by ruff:
boot-qemu.py:792:21: SIM105 Use `contextlib.suppress(KeyboardInterrupt)` instead of try-except-pass
Signed-off-by: Nathan Chancellor <nathan@kernel.org>1 parent b55011d commit 66ba09e
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
785 | 786 | | |
786 | 787 | | |
787 | 788 | | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
793 | 792 | | |
794 | 793 | | |
795 | 794 | | |
| |||
0 commit comments