]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-85567: Fix resouce warnings in pickle and pickletools CLIs (GH-113618)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 5 Jan 2024 22:12:34 +0000 (00:12 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Jan 2024 22:12:34 +0000 (00:12 +0200)
commitbd754b93ca837aa1f239252437a211271d068b71
tree8c932d96f67820fcb53484bae7e293716fcbb6bc
parent3c4e972d6d0945a5401377bed25b307a88b19c75
gh-85567: Fix resouce warnings in pickle and pickletools CLIs (GH-113618)

Explicitly open and close files instead of using FileType.
Lib/pickle.py
Lib/pickletools.py
Misc/NEWS.d/next/Library/2024-01-01-13-26-02.gh-issue-85567.K4U15m.rst [new file with mode: 0644]