mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.12] gh-89159: Add some TarFile attribute types (GH-114520) (GH-114714)
(cherry picked from commit d7d0d13cd3
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
This commit is contained in:
parent
c09a01032d
commit
0795d9a17a
1 changed files with 6 additions and 0 deletions
|
@ -668,6 +668,7 @@ be finalized; only the internally used file object will be closed. See the
|
|||
|
||||
|
||||
.. attribute:: TarFile.pax_headers
|
||||
:type: dict
|
||||
|
||||
A dictionary containing key-value pairs of pax global headers.
|
||||
|
||||
|
@ -833,26 +834,31 @@ A ``TarInfo`` object has the following public data attributes:
|
|||
attribute.
|
||||
|
||||
.. attribute:: TarInfo.chksum
|
||||
:type: int
|
||||
|
||||
Header checksum.
|
||||
|
||||
|
||||
.. attribute:: TarInfo.devmajor
|
||||
:type: int
|
||||
|
||||
Device major number.
|
||||
|
||||
|
||||
.. attribute:: TarInfo.devminor
|
||||
:type: int
|
||||
|
||||
Device minor number.
|
||||
|
||||
|
||||
.. attribute:: TarInfo.offset
|
||||
:type: int
|
||||
|
||||
The tar header starts here.
|
||||
|
||||
|
||||
.. attribute:: TarInfo.offset_data
|
||||
:type: int
|
||||
|
||||
The file's data starts here.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue