]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-85567: Fix resouce warnings in pickle and pickletools CLIs (GH-113618)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 5 Jan 2024 22:37:43 +0000 (23:37 +0100)
committerGitHub <noreply@github.com>
Fri, 5 Jan 2024 22:37:43 +0000 (22:37 +0000)
commite132751b49a720da97e969542d89258a914cfe94
treeb9c9535917fb2d90f9f265445a7d9e72bf78eb94
parentd43f2ad6d90759cff89e48f6bd7d4049290e1139
[3.12] gh-85567: Fix resouce warnings in pickle and pickletools CLIs (GH-113618) (GH-113758)

Explicitly open and close files instead of using FileType.
(cherry picked from commit bd754b93ca837aa1f239252437a211271d068b71)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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]