]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-85567: Register a cleanup function to close files for FileType objects in argparse...
authorachhina <amanschhina@gmail.com>
Mon, 18 Apr 2022 01:53:37 +0000 (21:53 -0400)
committerGitHub <noreply@github.com>
Mon, 18 Apr 2022 01:53:37 +0000 (22:53 -0300)
commit328dbc051f84bd5fdf61101bb4fa61d85f8b7feb
tree3ffed19a8c924015e0a3bf6368f13fc450a9921d
parent7173fd5de0cb259b488828634745c03dbea94e6b
gh-85567: Register a cleanup function to close files for FileType objects in argparse (#32257)

* bpo-41395: Register a cleanup function to close files for FileType objects in argparse

* Added import as top level import, and renamed file as fh.
Lib/argparse.py
Misc/ACKS
Misc/NEWS.d/next/Library/2022-04-02-14-40-53.bpo-41395.Y1ZVvT.rst [new file with mode: 0644]