Skip to content

Commit e73fee4

Browse files
committed
Improve doc about extractors
1 parent 15736f0 commit e73fee4

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Doc/library/zipfile.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,9 +1064,9 @@ Extractors
10641064
An extractor class can be passed to :meth:`ZipFile.extract` or
10651065
:meth:`ZipFile.extractall` to handle file attribute restoration.
10661066

1067-
To create a custom extractor, subclass :class:`ZipExtractorBase` and override
1068-
its :meth:`~ZipExtractorBase.restore_attributes`. Here is an example that
1069-
ignores errors when restoring file attributes:
1067+
To create a custom extractor, subclass :class:`ZipExtractorBase` and implement
1068+
the :meth:`~ZipExtractorBase.restore_attributes` method. Here is an example
1069+
that ignores errors when restoring file attributes:
10701070

10711071
.. code-block:: python
10721072
@@ -1103,25 +1103,25 @@ ignores errors when restoring file attributes:
11031103

11041104
.. class:: ZipExtractorTime(archive, path=None, pwd=None)
11051105

1106-
An extractor class that restores file mtime and atime.
1106+
A subclass of :class:`ZipExtractorBase` that restores file mtime and atime.
11071107

11081108

11091109
.. class:: ZipExtractorTimeMode(archive, path=None, pwd=None)
11101110

1111-
An extractor class that restores file mtime, atime, and all mode bits
1112-
(``0o7777``).
1111+
A subclass of :class:`ZipExtractorTime` that restores file mtime, atime, and
1112+
all mode bits (``0o7777``).
11131113

11141114

11151115
.. class:: ZipExtractorTimeModeSafe(archive, path=None, pwd=None)
11161116

1117-
An extractor class that restores file mtime, atime, and safe file mode
1118-
bits (``0o777``).
1117+
A subclass of :class:`ZipExtractorTimeMode` that restores file mtime, atime,
1118+
and safe file mode bits (``0o777``).
11191119

11201120

11211121
.. class:: ZipExtractorTimeModeX(archive, path=None, pwd=None)
11221122

1123-
An extractor class that restores file mtime, atime, and executable bits
1124-
(``0o111``).
1123+
A subclass of :class:`ZipExtractorTimeMode` that restores file mtime, atime,
1124+
and executable bits (``0o111``).
11251125

11261126

11271127
.. _zipfile-commandline:

0 commit comments

Comments
 (0)