Issue #3039: Fix TarFileCompat.writestr() which always raised an
AttributeError since __slots__ were added to zipfile.ZipInfo in
r46967 two years ago.
Add a warning about the removal of TarFileCompat in Python 3.0.
diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst
index b62148a..aabd641 100644
--- a/Doc/library/tarfile.rst
+++ b/Doc/library/tarfile.rst
@@ -140,6 +140,10 @@
Constant for a :mod:`gzip` compressed tar archive.
+ .. deprecated:: 2.6
+ The :class:`TarFileCompat` class has been deprecated for removal in Python 3.0.
+
+
.. exception:: TarError
Base class for all :mod:`tarfile` exceptions.