@@ -234,19 +234,21 @@ Another example that uses the *ignore* argument to add a logging call::
234234 copytree(source, destination, ignore=_logpath)
235235
236236
237- Archives operations
238- -------------------
237+ .. _archiving-operations :
238+
239+ Archiving operations
240+ --------------------
239241
240242.. function :: make_archive(base_name, format, [root_dir, [base_dir, [verbose, [dry_run, [owner, [group, [logger]]]]]]])
241243
242- Create an archive file (e.g. zip or tar) and returns its name.
244+ Create an archive file (such as zip or tar) and return its name.
243245
244246 *base_name * is the name of the file to create, including the path, minus
245247 any format-specific extension. *format * is the archive format: one of
246248 "zip", "tar", "bztar" (if the :mod: `bz2 ` module is available) or "gztar".
247249
248250 *root_dir * is a directory that will be the root directory of the
249- archive; i.e. we typically chdir into *root_dir * before creating the
251+ archive; for example, we typically chdir into *root_dir * before creating the
250252 archive.
251253
252254 *base_dir * is the directory where we start archiving from;
@@ -258,6 +260,8 @@ Archives operations
258260 *owner * and *group * are used when creating a tar archive. By default,
259261 uses the current owner and group.
260262
263+ *logger * is an instance of :class: `logging.Logger `.
264+
261265 .. versionadded :: 3.2
262266
263267
@@ -284,7 +288,7 @@ Archives operations
284288 Registers an archiver for the format *name *. *function * is a callable that
285289 will be used to invoke the archiver.
286290
287- If given, *extra_args * is a sequence of ``(name, value) `` that will be
291+ If given, *extra_args * is a sequence of ``(name, value) `` pairs that will be
288292 used as extra keywords arguments when the archiver callable is used.
289293
290294 *description * is used by :func: `get_archive_formats ` which returns the
@@ -316,7 +320,7 @@ Archives operations
316320 .. versionadded :: 3.2
317321
318322
319- .. function :: register_unpack_format(name, extensions, function[, extra_args[,description]])
323+ .. function :: register_unpack_format(name, extensions, function[, extra_args[, description]])
320324
321325 Registers an unpack format. *name * is the name of the format and
322326 *extensions * is a list of extensions corresponding to the format, like
0 commit comments