From 4956c286fe706230c9d5fad133c00708213aa7e9 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Mon, 11 May 2026 16:42:54 +0300 Subject: [PATCH] gh-149634: Fix removed docs from `TarFile.tarfile` to `TarInfo.tarfile` --- 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 a64212e38e61cb..50450658d31440 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 f4489bfa1b74e8..de5a37042a9203 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 620b66f754f5b5..73e8d73c36891a 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.