mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
Remove the deprecated posix attribute.
This commit is contained in:
parent
655c641ad1
commit
8c66a6d25f
2 changed files with 0 additions and 23 deletions
|
|
@ -1577,17 +1577,6 @@ class TarFile(object):
|
|||
self.fileobj.write(buf)
|
||||
self.offset += len(buf)
|
||||
|
||||
def _getposix(self):
|
||||
return self.format == USTAR_FORMAT
|
||||
def _setposix(self, value):
|
||||
import warnings
|
||||
warnings.warn("use the format attribute instead", DeprecationWarning)
|
||||
if value:
|
||||
self.format = USTAR_FORMAT
|
||||
else:
|
||||
self.format = GNU_FORMAT
|
||||
posix = property(_getposix, _setposix)
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
# Below are the classmethods which act as alternate constructors to the
|
||||
# TarFile class. The open() method is the only one that is needed for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue