From 7096e26983c5c8ce3e5f7dae42959e7ffe91bd5e Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 23 May 2014 03:46:52 +0100 Subject: [PATCH] Issue 21479: Fix markup for the TarFile.open() classmethod. --- Doc/library/tarfile.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst index 740b185e23c..1ef270358b9 100644 --- a/Doc/library/tarfile.rst +++ b/Doc/library/tarfile.rst @@ -292,7 +292,7 @@ be finalized; only the internally used file object will be closed. See the will be added as a pax global header if *format* is :const:`PAX_FORMAT`. -.. method:: TarFile.open(...) +.. classmethod:: TarFile.open(...) Alternative constructor. The :func:`tarfile.open` function is actually a shortcut to this classmethod.