@@ -430,7 +430,7 @@ be finalized; only the internally used file object will be closed. See the
430
430
are used to set the owner/group for the extracted files. Otherwise, the named
431
431
values from the tarfile are used.
432
432
433
- The *filter * argument, which was added in Python 3.11.4 , specifies how
433
+ The *filter * argument, which was added in Python 3.10.12 , specifies how
434
434
``members `` are modified or rejected before extraction.
435
435
See :ref: `tarfile-extraction-filter ` for details.
436
436
It is recommended to set this explicitly depending on which *tar * features
@@ -452,7 +452,7 @@ be finalized; only the internally used file object will be closed. See the
452
452
.. versionchanged :: 3.6
453
453
The *path * parameter accepts a :term: `path-like object `.
454
454
455
- .. versionchanged :: 3.11.4
455
+ .. versionchanged :: 3.10.12
456
456
Added the *filter * parameter.
457
457
458
458
@@ -488,7 +488,7 @@ be finalized; only the internally used file object will be closed. See the
488
488
.. versionchanged :: 3.6
489
489
The *path * parameter accepts a :term: `path-like object `.
490
490
491
- .. versionchanged :: 3.11.4
491
+ .. versionchanged :: 3.10.12
492
492
Added the *filter * parameter.
493
493
494
494
@@ -526,7 +526,7 @@ be finalized; only the internally used file object will be closed. See the
526
526
527
527
.. attribute :: TarFile.extraction_filter
528
528
529
- .. versionadded :: 3.11.4
529
+ .. versionadded :: 3.10.12
530
530
531
531
The :ref: `extraction filter <tarfile-extraction-filter >` used
532
532
as a default for the *filter * argument of :meth: `~TarFile.extract `
@@ -648,7 +648,7 @@ Different :class:`TarInfo` methods handle ``None`` differently:
648
648
- :meth: `~TarFile.list ` will print a placeholder string.
649
649
650
650
651
- .. versionchanged :: 3.11.4
651
+ .. versionchanged :: 3.10.12
652
652
Added :meth: `~TarInfo.replace ` and handling of ``None ``.
653
653
654
654
@@ -700,7 +700,7 @@ A ``TarInfo`` object has the following public data attributes:
700
700
Time of last modification in seconds since the :ref: `epoch <epoch >`,
701
701
as in :attr: `os.stat_result.st_mtime `.
702
702
703
- .. versionchanged :: 3.11.4
703
+ .. versionchanged :: 3.10.12
704
704
705
705
Can be set to ``None `` for :meth: `~TarFile.extract ` and
706
706
:meth: `~TarFile.extractall `, causing extraction to skip applying this
@@ -711,7 +711,7 @@ A ``TarInfo`` object has the following public data attributes:
711
711
712
712
Permission bits, as for :func: `os.chmod `.
713
713
714
- .. versionchanged :: 3.11.4
714
+ .. versionchanged :: 3.10.12
715
715
716
716
Can be set to ``None `` for :meth: `~TarFile.extract ` and
717
717
:meth: `~TarFile.extractall `, causing extraction to skip applying this
@@ -738,7 +738,7 @@ A ``TarInfo`` object has the following public data attributes:
738
738
739
739
User ID of the user who originally stored this member.
740
740
741
- .. versionchanged :: 3.11.4
741
+ .. versionchanged :: 3.10.12
742
742
743
743
Can be set to ``None `` for :meth: `~TarFile.extract ` and
744
744
:meth: `~TarFile.extractall `, causing extraction to skip applying this
@@ -749,7 +749,7 @@ A ``TarInfo`` object has the following public data attributes:
749
749
750
750
Group ID of the user who originally stored this member.
751
751
752
- .. versionchanged :: 3.11.4
752
+ .. versionchanged :: 3.10.12
753
753
754
754
Can be set to ``None `` for :meth: `~TarFile.extract ` and
755
755
:meth: `~TarFile.extractall `, causing extraction to skip applying this
@@ -760,7 +760,7 @@ A ``TarInfo`` object has the following public data attributes:
760
760
761
761
User name.
762
762
763
- .. versionchanged :: 3.11.4
763
+ .. versionchanged :: 3.10.12
764
764
765
765
Can be set to ``None `` for :meth: `~TarFile.extract ` and
766
766
:meth: `~TarFile.extractall `, causing extraction to skip applying this
@@ -771,7 +771,7 @@ A ``TarInfo`` object has the following public data attributes:
771
771
772
772
Group name.
773
773
774
- .. versionchanged :: 3.11.4
774
+ .. versionchanged :: 3.10.12
775
775
776
776
Can be set to ``None `` for :meth: `~TarFile.extract ` and
777
777
:meth: `~TarFile.extractall `, causing extraction to skip applying this
@@ -786,7 +786,7 @@ A ``TarInfo`` object has the following public data attributes:
786
786
uid=..., gid=..., uname=..., gname=...,
787
787
deep=True)
788
788
789
- .. versionadded :: 3.11.4
789
+ .. versionadded :: 3.10.12
790
790
791
791
Return a *new * copy of the :class: `!TarInfo ` object with the given attributes
792
792
changed. For example, to return a ``TarInfo `` with the group name set to
@@ -851,7 +851,7 @@ A :class:`TarInfo` object also provides some convenient query methods:
851
851
Extraction filters
852
852
------------------
853
853
854
- .. versionadded :: 3.11.4
854
+ .. versionadded :: 3.10.12
855
855
856
856
The *tar * format is designed to capture all details of a UNIX-like filesystem,
857
857
which makes it very powerful.
@@ -1175,7 +1175,7 @@ Command-line options
1175
1175
Only string names are accepted (that is, ``fully_trusted ``, ``tar ``,
1176
1176
and ``data ``).
1177
1177
1178
- .. versionadded :: 3.11.4
1178
+ .. versionadded :: 3.10.12
1179
1179
1180
1180
.. _tar-examples :
1181
1181
0 commit comments