Skip to content

Commit 7276ee0

Browse files
gh-101100: Fix sphinx warnings in zipapp and zipfile modules (GH-102526)
(cherry picked from commit 1f557f9) Co-authored-by: Nikita Sobolev <[email protected]>
1 parent c4fb418 commit 7276ee0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/library/zipapp.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ using the :func:`create_archive` function::
215215
>>> import zipapp
216216
>>> zipapp.create_archive('old_archive.pyz', 'new_archive.pyz', '/usr/bin/python3')
217217

218-
To update the file in place, do the replacement in memory using a :class:`BytesIO`
218+
To update the file in place, do the replacement in memory using a :class:`~io.BytesIO`
219219
object, and then overwrite the source afterwards. Note that there is a risk
220220
when overwriting a file in place that an error will result in the loss of
221221
the original file. This code does not protect against such errors, but

Doc/library/zipfile.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ ZipFile Objects
266266
(``ZipExtFile``) is read-only and provides the following methods:
267267
:meth:`~io.BufferedIOBase.read`, :meth:`~io.IOBase.readline`,
268268
:meth:`~io.IOBase.readlines`, :meth:`~io.IOBase.seek`,
269-
:meth:`~io.IOBase.tell`, :meth:`__iter__`, :meth:`~iterator.__next__`.
269+
:meth:`~io.IOBase.tell`, :meth:`~container.__iter__`, :meth:`~iterator.__next__`.
270270
These objects can operate independently of the ZipFile.
271271

272272
With ``mode='w'``, a writable file handle is returned, which supports the

0 commit comments

Comments
 (0)