]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46556: emit `DeprecationWarning` from `pathlib.Path.__enter__()` (GH-30971)
authorBarney Gale <barney.gale@gmail.com>
Tue, 8 Feb 2022 21:01:37 +0000 (21:01 +0000)
committerGitHub <noreply@github.com>
Tue, 8 Feb 2022 21:01:37 +0000 (13:01 -0800)
commit06e1701ad3956352bc0f42b8f51c2f8cc85bf378
tree3d6177468f6e1cc7ce4fe9df0e7985a0d6bc77b7
parent81c72044a181dbbfbf689d7a977d0d99090f26a8
bpo-46556: emit `DeprecationWarning` from `pathlib.Path.__enter__()` (GH-30971)

In Python 3.9, Path.__exit__() was made a no-op and has never been documented.

Co-authored-by: Brett Cannon <brett@python.org>
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Library/2022-01-27-23-20-30.bpo-46556.tlpAgS.rst [new file with mode: 0644]