Commit 0709eae
committed
boot-qemu.py: Use context manager for pathlib open() calls
New pylint warns:
boot-qemu.py:413:8: R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
boot-qemu.py:418:8: R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
We do not expect these calls to fail but the refactoring is simple to silence
the warning.
Signed-off-by: Nathan Chancellor <nathan@kernel.org>1 parent 66e1883 commit 0709eae
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
| 414 | + | |
| 415 | + | |
415 | 416 | | |
416 | 417 | | |
417 | 418 | | |
418 | 419 | | |
419 | | - | |
| 420 | + | |
| 421 | + | |
420 | 422 | | |
421 | 423 | | |
422 | 424 | | |
| |||
0 commit comments