Mark TarInfo.frombuf() and TarInfo.fromtarfile() as classmethods.

This commit is contained in:
Berker Peksag 2015-04-19 04:37:35 +03:00
parent e4dde50c78
commit 37de910b52
1 changed files with 3 additions and 3 deletions

View File

@ -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.