]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-58032: Do not use argparse.FileType in module CLIs and scripts (GH-113649)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 10 Jan 2024 13:07:19 +0000 (15:07 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jan 2024 13:07:19 +0000 (15:07 +0200)
commitb3d2427f2280fa8dae3515036c518d74ba43ebd1
treee9fda1fdaf580c57ca6bda8c0d7e7bfc965f91d5
parenta8629816c6c0e6770248a60529fd7c9ba08aad55
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.
Lib/ast.py
Lib/dis.py
Lib/json/tool.py
Tools/importbench/importbench.py
Tools/peg_generator/pegen/keywordgen.py
Tools/scripts/summarize_stats.py
Tools/ssl/make_ssl_data.py