[Python-checkins] cpython (3.4): 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/36a2c5eea3d7
changeset: 95710:36a2c5eea3d7
branch: 3.4
parent: 95708:d737ab3ea1ae
user: Berker Peksag <berker.peksag at gmail.com>
date: Sun Apr 19 04:37:35 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
@@ -465,14 +465,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