summaryrefslogtreecommitdiffstats
path: root/Lib/tarfile.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-08-04 08:25:03 (GMT)
committerGeorg Brandl <georg@python.org>2008-08-04 08:25:03 (GMT)
commit8c66a6d25f0c164652f075aa95b1c4ec339a0eec (patch)
treef896bfc49760ceeba5455e8435c0d209e115888b /Lib/tarfile.py
parent655c641ad1d18b5123202f1f8eb223d9c6365c85 (diff)
downloadcpython-8c66a6d25f0c164652f075aa95b1c4ec339a0eec.zip
cpython-8c66a6d25f0c164652f075aa95b1c4ec339a0eec.tar.gz
cpython-8c66a6d25f0c164652f075aa95b1c4ec339a0eec.tar.bz2
Remove the deprecated posix attribute.
Diffstat (limited to 'Lib/tarfile.py')
-rw-r--r--Lib/tarfile.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py
index 607dbfa..ecb32f6 100644
--- a/Lib/tarfile.py
+++ b/Lib/tarfile.py
@@ -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