[Python-checkins] cpython (merge 3.4 -> default): Mark TarInfo.frombuf() and TarInfo.fromtarfile() as classmethods.

berker.peksag python-checkins at python.org
Sun Apr 19 03:37:47 CEST 2015


https://hg.python.org/cpython/rev/e4802f19eee4
changeset:   95711:e4802f19eee4
parent:      95709:85cba64e24dc
parent:      95710:36a2c5eea3d7
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Sun Apr 19 04:38:01 2015 +0300
summary:
  Mark TarInfo.frombuf() and TarInfo.fromtarfile() as classmethods.

files:
  Doc/library/tarfile.rst |  6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst
--- 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.

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list