diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-04-19 01:37:35 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-04-19 01:37:35 (GMT) |
commit | 37de910b5286f768e9561599673b2cfdd4a66af5 (patch) | |
tree | d3ca110904c2d282f78805a5ac9b0fddf2aa69b0 | |
parent | e4dde50c78113a461bca9d238055fb9320595848 (diff) | |
download | cpython-37de910b5286f768e9561599673b2cfdd4a66af5.zip cpython-37de910b5286f768e9561599673b2cfdd4a66af5.tar.gz cpython-37de910b5286f768e9561599673b2cfdd4a66af5.tar.bz2 |
Mark TarInfo.frombuf() and TarInfo.fromtarfile() as classmethods.
-rw-r--r-- | Doc/library/tarfile.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst index 8338ffa..05f29ad 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. |