mirror of https://github.com/python/cpython
gh-89159: Add some TarFile attribute types (GH-114520)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
This commit is contained in:
parent
a16a9f978f
commit
d7d0d13cd3
|
@ -673,6 +673,7 @@ be finalized; only the internally used file object will be closed. See the
|
||||||
|
|
||||||
|
|
||||||
.. attribute:: TarFile.pax_headers
|
.. attribute:: TarFile.pax_headers
|
||||||
|
:type: dict
|
||||||
|
|
||||||
A dictionary containing key-value pairs of pax global headers.
|
A dictionary containing key-value pairs of pax global headers.
|
||||||
|
|
||||||
|
@ -838,26 +839,31 @@ A ``TarInfo`` object has the following public data attributes:
|
||||||
attribute.
|
attribute.
|
||||||
|
|
||||||
.. attribute:: TarInfo.chksum
|
.. attribute:: TarInfo.chksum
|
||||||
|
:type: int
|
||||||
|
|
||||||
Header checksum.
|
Header checksum.
|
||||||
|
|
||||||
|
|
||||||
.. attribute:: TarInfo.devmajor
|
.. attribute:: TarInfo.devmajor
|
||||||
|
:type: int
|
||||||
|
|
||||||
Device major number.
|
Device major number.
|
||||||
|
|
||||||
|
|
||||||
.. attribute:: TarInfo.devminor
|
.. attribute:: TarInfo.devminor
|
||||||
|
:type: int
|
||||||
|
|
||||||
Device minor number.
|
Device minor number.
|
||||||
|
|
||||||
|
|
||||||
.. attribute:: TarInfo.offset
|
.. attribute:: TarInfo.offset
|
||||||
|
:type: int
|
||||||
|
|
||||||
The tar header starts here.
|
The tar header starts here.
|
||||||
|
|
||||||
|
|
||||||
.. attribute:: TarInfo.offset_data
|
.. attribute:: TarInfo.offset_data
|
||||||
|
:type: int
|
||||||
|
|
||||||
The file's data starts here.
|
The file's data starts here.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue