Issue #22831: Use "with" to avoid possible fd leaks.
10 files changed