Mark TarInfo.frombuf() and TarInfo.fromtarfile() as classmethods.
diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst
index 4ca131b..adacb0a 100644
--- a/Doc/library/tarfile.rst
+++ b/Doc/library/tarfile.rst
@@ -504,14 +504,14 @@
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*.
- 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
a :class:`TarInfo` object.