]> granicus.if.org Git - python/commitdiff
Remove the deprecated posix attribute.
authorGeorg Brandl <georg@python.org>
Mon, 4 Aug 2008 08:25:03 +0000 (08:25 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 4 Aug 2008 08:25:03 +0000 (08:25 +0000)
Doc/library/tarfile.rst
Lib/tarfile.py

index b7ca0620641a1e47058cde4be7c6936f1cdbd38d..8ec7d86d46036215d8135954bdc13152229d6ebe 100644 (file)
@@ -393,18 +393,6 @@ object, see :ref:`tarinfo-objects` for details.
    appended to the archive.
 
 
-.. attribute:: TarFile.posix
-
-   Setting this to :const:`True` is equivalent to setting the :attr:`format`
-   attribute to :const:`USTAR_FORMAT`, :const:`False` is equivalent to
-   :const:`GNU_FORMAT`.
-
-   *posix* defaults to :const:`False`.
-
-   .. deprecated:: 2.6
-      Use the :attr:`format` attribute instead.
-
-
 .. attribute:: TarFile.pax_headers
 
    A dictionary containing key-value pairs of pax global headers.
index 607dbfa1afffeb32ea18efdbd4a87aae9704bfcc..ecb32f6d0312a9bf57c962898bdeebeaa669b783 100644 (file)
@@ -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