]> granicus.if.org Git - python/commitdiff
Mark TarInfo.frombuf() and TarInfo.fromtarfile() as classmethods.
authorBerker Peksag <berker.peksag@gmail.com>
Sun, 19 Apr 2015 01:37:35 +0000 (04:37 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Sun, 19 Apr 2015 01:37:35 +0000 (04:37 +0300)
Doc/library/tarfile.rst

index 8338ffa8008f3c6121b4a9cb42698146e8ca9899..05f29adb0b55b9c7d4bf6011085328fe9fd9c0df 100644 (file)
@@ -465,14 +465,14 @@ It does *not* contain the file's data itself.
    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.