Commit 384975d
committed
style: use contextlib.suppress in EZSP.disconnect per ruff SIM105
ruff (the pinned v0.0.261 in pre-commit-config) flagged the simplified
disconnect handler from 7cf20c0 with SIM105 (try-except-pass should be
contextlib.suppress). Same behavior, idiomatic form. contextlib was
already imported.
Tests: 428 pass on Python 3.14.2, no behavioral change.1 parent f43c38f commit 384975d
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
228 | 230 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | 231 | | |
234 | 232 | | |
235 | 233 | | |
| |||
0 commit comments