]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] 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:29:31 +0000 (23:29 +0100)
committerGitHub <noreply@github.com>
Fri, 5 Jan 2024 22:29:31 +0000 (22:29 +0000)
commit9cea77126196381e8a8bd23d351d1dec3608372f
tree61e42e434677365ba1a1060b1c52ff18bb3f3b40
parent6aa86bdcb240501283d1652ee6c54193b32a63b0
[3.11] gh-85567: Fix resouce warnings in pickle and pickletools CLIs (GH-113618) (GH-113759)

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]