diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-04-19 01:38:01 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-04-19 01:38:01 (GMT) |
commit | 662738980ae1c328d5a623d8632af6eedda0c5ba (patch) | |
tree | 22892b5e831b8915578219c2eecbc931f2e89e77 | |
parent | 0002d3ccf602fc4e594c017dd5bb595e8fb1c1b4 (diff) | |
parent | 37de910b5286f768e9561599673b2cfdd4a66af5 (diff) | |
download | cpython-662738980ae1c328d5a623d8632af6eedda0c5ba.zip cpython-662738980ae1c328d5a623d8632af6eedda0c5ba.tar.gz cpython-662738980ae1c328d5a623d8632af6eedda0c5ba.tar.bz2 |
Mark TarInfo.frombuf() and TarInfo.fromtarfile() as classmethods.
-rw-r--r-- | Doc/library/tarfile.rst | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ 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. |