We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d35ee0b + 7927e75 commit b7abaa8Copy full SHA for b7abaa8
1 file changed
Doc/library/zipfile.rst
@@ -142,8 +142,8 @@ ZipFile Objects
142
file, then additional files are added to it. If *file* does not refer to a
143
ZIP file, then a new ZIP archive is appended to the file. This is meant for
144
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.
+ *mode* is ``'a'`` and the file does not exist at all, it is created.
+ If *mode* is ``'r'`` or ``'a'``, the file should be seekable.
147
*compression* is the ZIP compression method to use when writing the archive,
148
and should be :const:`ZIP_STORED`, :const:`ZIP_DEFLATED`,
149
:const:`ZIP_BZIP2` or :const:`ZIP_LZMA`; unrecognized
0 commit comments