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.