From 6a26b78c470ee69d3ac095899fdc85004b260145 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Mon, 11 May 2026 18:03:57 +0300 Subject: [PATCH] gh-149634: Fix removed docs from `TarFile.tarfile` to `TarInfo.tarfile` (#149680) --- Doc/deprecations/pending-removal-in-3.16.rst | 2 +- Doc/whatsnew/3.13.rst | 2 +- .../next/Library/2026-05-10-14-10-00.gh-issue-149634.iT5cwC.rst | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/deprecations/pending-removal-in-3.16.rst b/Doc/deprecations/pending-removal-in-3.16.rst index a64212e38e61..50450658d314 100644 --- a/Doc/deprecations/pending-removal-in-3.16.rst +++ b/Doc/deprecations/pending-removal-in-3.16.rst @@ -101,5 +101,5 @@ Pending removal in Python 3.16 * :mod:`tarfile`: - * The undocumented and unused :attr:`!TarFile.tarfile` attribute + * The undocumented and unused :attr:`!TarInfo.tarfile` attribute has been deprecated since Python 3.13. diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index f4489bfa1b74..de5a37042a92 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -1965,7 +1965,7 @@ New Deprecations * :mod:`tarfile`: - * Deprecate the undocumented and unused :attr:`!TarFile.tarfile` attribute, + * Deprecate the undocumented and unused :attr:`!TarInfo.tarfile` attribute, to be removed in Python 3.16. (Contributed in :gh:`115256`.) diff --git a/Misc/NEWS.d/next/Library/2026-05-10-14-10-00.gh-issue-149634.iT5cwC.rst b/Misc/NEWS.d/next/Library/2026-05-10-14-10-00.gh-issue-149634.iT5cwC.rst index 620b66f754f5..73e8d73c3689 100644 --- a/Misc/NEWS.d/next/Library/2026-05-10-14-10-00.gh-issue-149634.iT5cwC.rst +++ b/Misc/NEWS.d/next/Library/2026-05-10-14-10-00.gh-issue-149634.iT5cwC.rst @@ -1 +1 @@ -Remove deprecated and unused :attr:`!tarfile.Tarfile.tarfile` attribute. +Remove deprecated and unused :attr:`!tarfile.TarInfo.tarfile` attribute. -- 2.47.3