From cf5608df8180875528f09afff00e9f898cc85cc0 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 25 Apr 2009 15:05:04 +0000 Subject: #5821: add some capabilities of TarFile's file-like object. --- Doc/library/tarfile.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst index aabd641..2996839 100644 --- a/Doc/library/tarfile.rst +++ b/Doc/library/tarfile.rst @@ -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) -- cgit v0.12