Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4dde50 commit 37de910Copy full SHA for 37de910
1 file changed
Doc/library/tarfile.rst
@@ -465,14 +465,14 @@ It does *not* contain the file's data itself.
465
Create a :class:`TarInfo` object.
466
467
468
-.. method:: TarInfo.frombuf(buf, encoding, errors)
+.. classmethod:: TarInfo.frombuf(buf, encoding, errors)
469
470
Create and return a :class:`TarInfo` object from string buffer *buf*.
471
472
- Raises :exc:`HeaderError` if the buffer is invalid..
+ Raises :exc:`HeaderError` if the buffer is invalid.
473
474
475
-.. method:: TarInfo.fromtarfile(tarfile)
+.. classmethod:: TarInfo.fromtarfile(tarfile)
476
477
Read the next member from the :class:`TarFile` object *tarfile* and return it as
478
a :class:`TarInfo` object.
0 commit comments