Feature or enhancement
Refs #115256
Refs #115257
This code is scheduled to be removed in 3.16:
|
@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 |
Linked PRs
Feature or enhancement
Refs #115256
Refs #115257
This code is scheduled to be removed in 3.16:
cpython/Lib/tarfile.py
Lines 945 to 961 in a2c1657
Linked PRs
tarfile.Tarfile.tarfileattr #149635