]> granicus.if.org Git - python/commitdiff
#5821: add some capabilities of TarFile's file-like object.
authorGeorg Brandl <georg@python.org>
Sat, 25 Apr 2009 15:05:04 +0000 (15:05 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 25 Apr 2009 15:05:04 +0000 (15:05 +0000)
Doc/library/tarfile.rst

index aabd6410bffe8e2a6fd5750d8be2d457f9b2f924..29968396e01a76e16410032fc268781f701496da 100644 (file)
@@ -384,8 +384,9 @@ object, see :ref:`tarinfo-objects` for details.
 
    .. note::
 
-      The file-like object is read-only and provides the following methods:
-      :meth:`read`, :meth:`readline`, :meth:`readlines`, :meth:`seek`, :meth:`tell`.
+      The file-like object is read-only.  It provides the methods
+      :meth:`read`, :meth:`readline`, :meth:`readlines`, :meth:`seek`, :meth:`tell`,
+      and :meth:`close`, and also supports iteration over its lines.
 
 
 .. method:: TarFile.add(name, arcname=None, recursive=True, exclude=None)