Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 7927e75

Browse files
committed
Issue python#28103: Use '...' style in zipfile documentation
Patch by Stephen J. Turnbull.
1 parent 076366c commit 7927e75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/zipfile.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ ZipFile Objects
142142
file, then additional files are added to it. If *file* does not refer to a
143143
ZIP file, then a new ZIP archive is appended to the file. This is meant for
144144
adding a ZIP archive to another file (such as :file:`python.exe`). If
145-
*mode* is ``a`` and the file does not exist at all, it is created.
146-
If *mode* is ``r`` or ``a``, the file should be seekable.
145+
*mode* is ``'a'`` and the file does not exist at all, it is created.
146+
If *mode* is ``'r'`` or ``'a'``, the file should be seekable.
147147
*compression* is the ZIP compression method to use when writing the archive,
148148
and should be :const:`ZIP_STORED`, :const:`ZIP_DEFLATED`,
149149
:const:`ZIP_BZIP2` or :const:`ZIP_LZMA`; unrecognized

0 commit comments

Comments
 (0)