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.
2 parents 0002d3c + 37de910 commit 6627389Copy full SHA for 6627389
1 file changed
Doc/library/tarfile.rst
@@ -504,14 +504,14 @@ It does *not* contain the file's data itself.
504
Create a :class:`TarInfo` object.
505
506
507
-.. method:: TarInfo.frombuf(buf, encoding, errors)
+.. classmethod:: TarInfo.frombuf(buf, encoding, errors)
508
509
Create and return a :class:`TarInfo` object from string buffer *buf*.
510
511
- Raises :exc:`HeaderError` if the buffer is invalid..
+ Raises :exc:`HeaderError` if the buffer is invalid.
512
513
514
-.. method:: TarInfo.fromtarfile(tarfile)
+.. classmethod:: TarInfo.fromtarfile(tarfile)
515
516
Read the next member from the :class:`TarFile` object *tarfile* and return it as
517
a :class:`TarInfo` object.
0 commit comments