Commit 37de910b authored by Berker Peksag's avatar Berker Peksag

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

parent e4dde50c
...@@ -465,14 +465,14 @@ It does *not* contain the file's data itself. ...@@ -465,14 +465,14 @@ It does *not* contain the file's data itself.
Create a :class:`TarInfo` object. 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*. 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 Read the next member from the :class:`TarFile` object *tarfile* and return it as
a :class:`TarInfo` object. a :class:`TarInfo` object.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment