From: Berker Peksag Date: Sun, 19 Apr 2015 01:37:35 +0000 (+0300) Subject: Mark TarInfo.frombuf() and TarInfo.fromtarfile() as classmethods. X-Git-Tag: v3.5.0a4~6^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37de910b5286f768e9561599673b2cfdd4a66af5;p=thirdparty%2FPython%2Fcpython.git Mark TarInfo.frombuf() and TarInfo.fromtarfile() as classmethods. --- diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst index 8338ffa8008f..05f29adb0b55 100644 --- a/Doc/library/tarfile.rst +++ b/Doc/library/tarfile.rst @@ -465,14 +465,14 @@ It does *not* contain the file's data itself. Create a :class:`TarInfo` object. -.. method:: TarInfo.frombuf(buf, encoding, errors) +.. classmethod:: TarInfo.frombuf(buf, encoding, errors) Create and return a :class:`TarInfo` object from string buffer *buf*. - Raises :exc:`HeaderError` if the buffer is invalid.. + Raises :exc:`HeaderError` if the buffer is invalid. -.. method:: TarInfo.fromtarfile(tarfile) +.. classmethod:: TarInfo.fromtarfile(tarfile) Read the next member from the :class:`TarFile` object *tarfile* and return it as a :class:`TarInfo` object.