From: Raymond Hettinger Date: Fri, 23 May 2014 02:43:29 +0000 (+0100) Subject: Issue 21479: Fix markup for the TarFile.open() classmethod. X-Git-Tag: v2.7.8~37^2~93 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd613498482fdc71ebda878196b996c00f85c382;p=thirdparty%2FPython%2Fcpython.git Issue 21479: Fix markup for the TarFile.open() classmethod. --- diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst index 99a9f2bf8a9a..1c6b67c27b68 100644 --- a/Doc/library/tarfile.rst +++ b/Doc/library/tarfile.rst @@ -305,7 +305,7 @@ be finalized; only the internally used file object will be closed. See the .. versionadded:: 2.6 -.. method:: TarFile.open(...) +.. classmethod:: TarFile.open(...) Alternative constructor. The :func:`tarfile.open` function is actually a shortcut to this classmethod.