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

Skip to content

Commit 6627389

Browse files
committed
Mark TarInfo.frombuf() and TarInfo.fromtarfile() as classmethods.
2 parents 0002d3c + 37de910 commit 6627389

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
@@ -504,14 +504,14 @@ It does *not* contain the file's data itself.
504504
Create a :class:`TarInfo` object.
505505

506506

507-
.. method:: TarInfo.frombuf(buf, encoding, errors)
507+
.. classmethod:: TarInfo.frombuf(buf, encoding, errors)
508508

509509
Create and return a :class:`TarInfo` object from string buffer *buf*.
510510

511-
Raises :exc:`HeaderError` if the buffer is invalid..
511+
Raises :exc:`HeaderError` if the buffer is invalid.
512512

513513

514-
.. method:: TarInfo.fromtarfile(tarfile)
514+
.. classmethod:: TarInfo.fromtarfile(tarfile)
515515

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

0 commit comments

Comments
 (0)