mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rather than using `f = open(path).read()`, which leaves the file open for an indeterminate period of time, switch to the `with open(path) as f` idiom, which ensures the file is always closed correctly.
12 KiB
12 KiB