summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2016-04-25 14:27:27 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2016-04-25 14:27:27 (GMT)
commitd3304e3e20651665bdafd29ffbdf64f50ac753e6 (patch)
tree60f0d8739e5fe05d61a655e3a1fc84c8916ad94d /Doc/library
parent8724a2adf2be6a89df20c3cebcbcc641d2a52d42 (diff)
downloadcpython-d3304e3e20651665bdafd29ffbdf64f50ac753e6.zip
cpython-d3304e3e20651665bdafd29ffbdf64f50ac753e6.tar.gz
cpython-d3304e3e20651665bdafd29ffbdf64f50ac753e6.tar.bz2
FileExistsError is raised by mkdir when dir exists
Reported by Saul Spatz on docs@
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/os.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index f2cfdb4..0ff6857 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -1624,8 +1624,8 @@ features:
Create a directory named *path* with numeric mode *mode*.
On some systems, *mode* is ignored. Where it is used, the current umask
- value is first masked out. If the directory already exists, :exc:`OSError`
- is raised.
+ value is first masked out. If the directory already exists,
+ :exc:`FileExistsError` is raised.
This function can also support :ref:`paths relative to directory descriptors
<dir_fd>`.