summaryrefslogtreecommitdiff
path: root/Doc/library/zipfile.rst
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2016-01-21 21:06:47 -0800
committerSenthil Kumaran <senthil@uthcode.com>2016-01-21 21:06:47 -0800
commite5c05cc8c0c4bdf9748f8d7d2a39e85793e52af9 (patch)
treebe352b3224714f48b0276bcc9b81bb274040af12 /Doc/library/zipfile.rst
parent38150e0d8540aa06226c6e6bfd90a21d18bd76cc (diff)
downloadcpython-git-e5c05cc8c0c4bdf9748f8d7d2a39e85793e52af9.tar.gz
minor clarification on Zipfile 'x' mode - exclusive creation of a file.
Diffstat (limited to 'Doc/library/zipfile.rst')
-rw-r--r--Doc/library/zipfile.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst
index d40315eaf8..e3c2217317 100644
--- a/Doc/library/zipfile.rst
+++ b/Doc/library/zipfile.rst
@@ -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