Skip to content
Prev Previous commit
Next Next commit
Remove duplicate change entries from docs
  • Loading branch information
illia-v committed Jun 5, 2024
commit e8feaca42f23310cc1f01bcb20b67ab38f05f9ef
18 changes: 5 additions & 13 deletions Doc/library/shutil.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@ Directory and files operations
copy the file more efficiently. See
:ref:`shutil-platform-dependent-efficient-copy-operations` section.

.. versionchanged:: 3.14
Copy-on-write or server-side copy may be used internally on supported
filesystems via :func:`os.copy_file_range`.

.. exception:: SameFileError

This exception is raised if source and destination in :func:`copyfile`
Expand Down Expand Up @@ -191,10 +187,6 @@ Directory and files operations
copy the file more efficiently. See
:ref:`shutil-platform-dependent-efficient-copy-operations` section.

.. versionchanged:: 3.14
Copy-on-write or server-side copy may be used internally on supported
filesystems via :func:`os.copy_file_range`.

.. function:: copy2(src, dst, *, follow_symlinks=True)

Identical to :func:`~shutil.copy` except that :func:`copy2`
Expand Down Expand Up @@ -227,10 +219,6 @@ Directory and files operations
copy the file more efficiently. See
:ref:`shutil-platform-dependent-efficient-copy-operations` section.

.. versionchanged:: 3.14
Copy-on-write or server-side copy may be used internally on supported
filesystems via :func:`os.copy_file_range`.

.. function:: ignore_patterns(*patterns)

This factory function creates a function that can be used as a callable for
Expand Down Expand Up @@ -529,7 +517,7 @@ the use of userspace buffers in Python as in "``outfd.write(infd.read())``".

On macOS `fcopyfile`_ is used to copy the file content (not metadata).

On Linux :func:`os.sendfile` is used.
On Linux :func:`os.copy_file_range` or :func:`os.sendfile` is used.

On Windows :func:`shutil.copyfile` uses a bigger default buffer size (1 MiB
instead of 64 KiB) and a :func:`memoryview`-based variant of
Expand All @@ -541,6 +529,10 @@ file then shutil will silently fallback on using less efficient

.. versionchanged:: 3.8

.. versionchanged:: 3.14
Copy-on-write or server-side copy may be used internally via
:func:`os.copy_file_range` on supported Linux filesystems.

.. _shutil-copytree-example:

copytree example
Expand Down