From 3c3a7bb376baab3b937297031a65434a311557e4 Mon Sep 17 00:00:00 2001 From: Brian Schubert Date: Tue, 2 Jun 2026 15:12:36 -0400 Subject: [PATCH] Fix description of the function parameter of shutil.register_archive_format() (GH-145087) (cherry picked from commit 18c6d3ccc32232a28a5288708818ef9c4fecba1a) Co-authored-by: Brian Schubert --- Doc/library/shutil.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 396e699384d7d1f..650046f5a08125e 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -673,7 +673,7 @@ provided. They rely on the :mod:`zipfile` and :mod:`tarfile` modules. Register an archiver for the format *name*. - *function* is the callable that will be used to unpack archives. The callable + *function* is the callable that will be used to create archives. The callable will receive the *base_name* of the file to create, followed by the *base_dir* (which defaults to :data:`os.curdir`) to start archiving from. Further arguments are passed as keyword arguments: *owner*, *group*,