Skip to content

Commit abb0e84

Browse files
committed
Fix version numbers in documentation.
1 parent ae62b3a commit abb0e84

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

Doc/library/shutil.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ provided. They rely on the :mod:`zipfile` and :mod:`tarfile` modules.
634634
registered for that extension. In case none is found,
635635
a :exc:`ValueError` is raised.
636636

637-
The keyword-only *filter* argument, which was added in Python 3.11.4,
637+
The keyword-only *filter* argument, which was added in Python 3.10.12,
638638
is passed to the underlying unpacking function.
639639
For zip files, *filter* is not accepted.
640640
For tar files, it is recommended to set it to ``'data'``,
@@ -655,7 +655,7 @@ provided. They rely on the :mod:`zipfile` and :mod:`tarfile` modules.
655655
.. versionchanged:: 3.7
656656
Accepts a :term:`path-like object` for *filename* and *extract_dir*.
657657

658-
.. versionchanged:: 3.11.4
658+
.. versionchanged:: 3.10.12
659659
Added the *filter* argument.
660660

661661
.. function:: register_unpack_format(name, extensions, function[, extra_args[, description]])

Doc/library/tarfile.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ be finalized; only the internally used file object will be closed. See the
430430
are used to set the owner/group for the extracted files. Otherwise, the named
431431
values from the tarfile are used.
432432

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
434434
``members`` are modified or rejected before extraction.
435435
See :ref:`tarfile-extraction-filter` for details.
436436
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
452452
.. versionchanged:: 3.6
453453
The *path* parameter accepts a :term:`path-like object`.
454454

455-
.. versionchanged:: 3.11.4
455+
.. versionchanged:: 3.10.12
456456
Added the *filter* parameter.
457457

458458

@@ -488,7 +488,7 @@ be finalized; only the internally used file object will be closed. See the
488488
.. versionchanged:: 3.6
489489
The *path* parameter accepts a :term:`path-like object`.
490490

491-
.. versionchanged:: 3.11.4
491+
.. versionchanged:: 3.10.12
492492
Added the *filter* parameter.
493493

494494

@@ -526,7 +526,7 @@ be finalized; only the internally used file object will be closed. See the
526526

527527
.. attribute:: TarFile.extraction_filter
528528

529-
.. versionadded:: 3.11.4
529+
.. versionadded:: 3.10.12
530530

531531
The :ref:`extraction filter <tarfile-extraction-filter>` used
532532
as a default for the *filter* argument of :meth:`~TarFile.extract`
@@ -648,7 +648,7 @@ Different :class:`TarInfo` methods handle ``None`` differently:
648648
- :meth:`~TarFile.list` will print a placeholder string.
649649

650650

651-
.. versionchanged:: 3.11.4
651+
.. versionchanged:: 3.10.12
652652
Added :meth:`~TarInfo.replace` and handling of ``None``.
653653

654654

@@ -700,7 +700,7 @@ A ``TarInfo`` object has the following public data attributes:
700700
Time of last modification in seconds since the :ref:`epoch <epoch>`,
701701
as in :attr:`os.stat_result.st_mtime`.
702702

703-
.. versionchanged:: 3.11.4
703+
.. versionchanged:: 3.10.12
704704

705705
Can be set to ``None`` for :meth:`~TarFile.extract` and
706706
:meth:`~TarFile.extractall`, causing extraction to skip applying this
@@ -711,7 +711,7 @@ A ``TarInfo`` object has the following public data attributes:
711711

712712
Permission bits, as for :func:`os.chmod`.
713713

714-
.. versionchanged:: 3.11.4
714+
.. versionchanged:: 3.10.12
715715

716716
Can be set to ``None`` for :meth:`~TarFile.extract` and
717717
:meth:`~TarFile.extractall`, causing extraction to skip applying this
@@ -738,7 +738,7 @@ A ``TarInfo`` object has the following public data attributes:
738738

739739
User ID of the user who originally stored this member.
740740

741-
.. versionchanged:: 3.11.4
741+
.. versionchanged:: 3.10.12
742742

743743
Can be set to ``None`` for :meth:`~TarFile.extract` and
744744
:meth:`~TarFile.extractall`, causing extraction to skip applying this
@@ -749,7 +749,7 @@ A ``TarInfo`` object has the following public data attributes:
749749

750750
Group ID of the user who originally stored this member.
751751

752-
.. versionchanged:: 3.11.4
752+
.. versionchanged:: 3.10.12
753753

754754
Can be set to ``None`` for :meth:`~TarFile.extract` and
755755
:meth:`~TarFile.extractall`, causing extraction to skip applying this
@@ -760,7 +760,7 @@ A ``TarInfo`` object has the following public data attributes:
760760

761761
User name.
762762

763-
.. versionchanged:: 3.11.4
763+
.. versionchanged:: 3.10.12
764764

765765
Can be set to ``None`` for :meth:`~TarFile.extract` and
766766
:meth:`~TarFile.extractall`, causing extraction to skip applying this
@@ -771,7 +771,7 @@ A ``TarInfo`` object has the following public data attributes:
771771

772772
Group name.
773773

774-
.. versionchanged:: 3.11.4
774+
.. versionchanged:: 3.10.12
775775

776776
Can be set to ``None`` for :meth:`~TarFile.extract` and
777777
:meth:`~TarFile.extractall`, causing extraction to skip applying this
@@ -786,7 +786,7 @@ A ``TarInfo`` object has the following public data attributes:
786786
uid=..., gid=..., uname=..., gname=...,
787787
deep=True)
788788

789-
.. versionadded:: 3.11.4
789+
.. versionadded:: 3.10.12
790790

791791
Return a *new* copy of the :class:`!TarInfo` object with the given attributes
792792
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:
851851
Extraction filters
852852
------------------
853853

854-
.. versionadded:: 3.11.4
854+
.. versionadded:: 3.10.12
855855

856856
The *tar* format is designed to capture all details of a UNIX-like filesystem,
857857
which makes it very powerful.
@@ -1175,7 +1175,7 @@ Command-line options
11751175
Only string names are accepted (that is, ``fully_trusted``, ``tar``,
11761176
and ``data``).
11771177

1178-
.. versionadded:: 3.11.4
1178+
.. versionadded:: 3.10.12
11791179

11801180
.. _tar-examples:
11811181

0 commit comments

Comments
 (0)