]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
minor clarification on Zipfile 'x' mode - exclusive creation of a file.
authorSenthil Kumaran <senthil@uthcode.com>
Fri, 22 Jan 2016 05:06:47 +0000 (21:06 -0800)
committerSenthil Kumaran <senthil@uthcode.com>
Fri, 22 Jan 2016 05:06:47 +0000 (21:06 -0800)
Doc/library/zipfile.rst

index d40315eaf8997f0b594684c776fa13958b793160..e3c221731750f34a3cfc03b607a7a9d1b84975b5 100644 (file)
@@ -134,8 +134,8 @@ ZipFile Objects
 
    Open a ZIP file, where *file* can be either a path to a file (a string) or a
    file-like object.  The *mode* parameter should be ``'r'`` to read an existing
-   file, ``'w'`` to truncate and write a new file, ``'x'`` to exclusive create
-   and write a new file, or ``'a'`` to append to an existing file.
+   file, ``'w'`` to truncate and write a new file, ``'a'`` to append to an
+   existing file, or ``'x'`` to exclusively create and write a new file.
    If *mode* is ``'x'`` and *file* refers to an existing file,
    a :exc:`FileExistsError` will be raised.
    If *mode* is ``'a'`` and *file* refers to an existing ZIP