From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 12 Jan 2024 23:26:08 +0000 (+0100) Subject: [3.12] gh-89159: Document missing TarInfo members (GH-91564) (#114006) X-Git-Tag: v3.12.2~183 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ea6658342af217570c24b6f00859ec30bbed72e;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-89159: Document missing TarInfo members (GH-91564) (#114006) gh-89159: Document missing TarInfo members (GH-91564) (cherry picked from commit 3aa4b839e4aa01d4e8bc5c7685fd0eb17c4609b8) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> --- diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst index 6e34158084eb..dbbcb127f6f2 100644 --- a/Doc/library/tarfile.rst +++ b/Doc/library/tarfile.rst @@ -832,6 +832,36 @@ A ``TarInfo`` object has the following public data attributes: :meth:`~TarFile.extractall`, causing extraction to skip applying this attribute. +.. attribute:: TarInfo.chksum + + Header checksum. + + +.. attribute:: TarInfo.devmajor + + Device major number. + + +.. attribute:: TarInfo.devminor + + Device minor number. + + +.. attribute:: TarInfo.offset + + The tar header starts here. + + +.. attribute:: TarInfo.offset_data + + The file's data starts here. + + +.. attribute:: TarInfo.sparse + + Sparse member information. + + .. attribute:: TarInfo.pax_headers :type: dict