Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 37de910

Browse files
committed
Mark TarInfo.frombuf() and TarInfo.fromtarfile() as classmethods.
1 parent e4dde50 commit 37de910

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/tarfile.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,14 +465,14 @@ It does *not* contain the file's data itself.
465465
Create a :class:`TarInfo` object.
466466

467467

468-
.. method:: TarInfo.frombuf(buf, encoding, errors)
468+
.. classmethod:: TarInfo.frombuf(buf, encoding, errors)
469469

470470
Create and return a :class:`TarInfo` object from string buffer *buf*.
471471

472-
Raises :exc:`HeaderError` if the buffer is invalid..
472+
Raises :exc:`HeaderError` if the buffer is invalid.
473473

474474

475-
.. method:: TarInfo.fromtarfile(tarfile)
475+
.. classmethod:: TarInfo.fromtarfile(tarfile)
476476

477477
Read the next member from the :class:`TarFile` object *tarfile* and return it as
478478
a :class:`TarInfo` object.

0 commit comments

Comments
 (0)