[Python-3000-checkins] r65482 - in python/branches/py3k: Doc/library/tarfile.rst Lib/tarfile.py

georg.brandl python-3000-checkins at python.org
Mon Aug 4 10:25:03 CEST 2008


Author: georg.brandl
Date: Mon Aug  4 10:25:03 2008
New Revision: 65482

Log:
Remove the deprecated posix attribute.


Modified:
   python/branches/py3k/Doc/library/tarfile.rst
   python/branches/py3k/Lib/tarfile.py

Modified: python/branches/py3k/Doc/library/tarfile.rst
==============================================================================
--- python/branches/py3k/Doc/library/tarfile.rst	(original)
+++ python/branches/py3k/Doc/library/tarfile.rst	Mon Aug  4 10:25:03 2008
@@ -393,18 +393,6 @@
    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.

Modified: python/branches/py3k/Lib/tarfile.py
==============================================================================
--- python/branches/py3k/Lib/tarfile.py	(original)
+++ python/branches/py3k/Lib/tarfile.py	Mon Aug  4 10:25:03 2008
@@ -1577,17 +1577,6 @@
                 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


More information about the Python-3000-checkins mailing list