which has been deprecated since Python 3.14.
Use the ``vars`` argument of :func:`sysconfig.get_paths` instead.
+tarfile
+-------
+
+* The undocumented and unused :attr:`!tarfile.TarFile.tarfile` attribute
+ has been deprecated since Python 3.13.
+
.. Add removals above alphabetically, not here at the end.
pax_headers = ('A dictionary containing key-value pairs of an '
'associated pax extended header.'),
sparse = 'Sparse member information.',
- _tarfile = None,
_sparse_structs = None,
_link_target = None,
)
self.sparse = None # sparse member information
self.pax_headers = {} # pax header information
- @property
- def tarfile(self):
- import warnings
- warnings.warn(
- 'The undocumented "tarfile" attribute of TarInfo objects '
- + 'is deprecated and will be removed in Python 3.16',
- DeprecationWarning, stacklevel=2)
- return self._tarfile
-
- @tarfile.setter
- def tarfile(self, tarfile):
- import warnings
- warnings.warn(
- 'The undocumented "tarfile" attribute of TarInfo objects '
- + 'is deprecated and will be removed in Python 3.16',
- DeprecationWarning, stacklevel=2)
- self._tarfile = tarfile
-
@property
def path(self):
'In pax headers, "name" is called "path".'
# Now, fill the TarInfo object with
# information specific for the file.
tarinfo = self.tarinfo()
- tarinfo._tarfile = self # To be removed in 3.16.
# Use os.stat or os.lstat, depending on if symlinks shall be resolved.
if fileobj is None: