]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #28103: Use ``'...'`` style in zipfile documentation
authorBerker Peksag <berker.peksag@gmail.com>
Tue, 13 Sep 2016 01:49:12 +0000 (04:49 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Tue, 13 Sep 2016 01:49:12 +0000 (04:49 +0300)
Patch by Stephen J. Turnbull.

Doc/library/zipfile.rst

index abe38c42f1c7ddc4168e17c11bf933d248204d89..1d6526ce95f0412e6dd6486a4e93b0f7ee32625e 100644 (file)
@@ -142,8 +142,8 @@ ZipFile Objects
    file, then additional files are added to it.  If *file* does not refer to a
    ZIP file, then a new ZIP archive is appended to the file.  This is meant for
    adding a ZIP archive to another file (such as :file:`python.exe`).  If
-   *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.
+   *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.
    *compression* is the ZIP compression method to use when writing the archive,
    and should be :const:`ZIP_STORED`, :const:`ZIP_DEFLATED`,
    :const:`ZIP_BZIP2` or :const:`ZIP_LZMA`; unrecognized