gh-58032: Do not use argparse.FileType in module CLIs and scripts (GH-113649)
Open and close files manually. It prevents from leaking files, preliminary creation of output files, and accidental closing of stdin and stdout.
S
Serhiy Storchaka committed
b3d2427f2280fa8dae3515036c518d74ba43ebd1
Parent: a862981
Committed by GitHub <noreply@github.com>
on 1/10/2024, 1:07:19 PM