]> granicus.if.org Git - python/commitdiff
FileExistsError is raised by mkdir when dir exists
authorZachary Ware <zachary.ware@gmail.com>
Mon, 25 Apr 2016 14:27:27 +0000 (09:27 -0500)
committerZachary Ware <zachary.ware@gmail.com>
Mon, 25 Apr 2016 14:27:27 +0000 (09:27 -0500)
Reported by Saul Spatz on docs@

Doc/library/os.rst

index f2cfdb4cbe2bca3c33034ea61418fe6957ac3a68..0ff68574692b57a9b3562e578b2433e1ba3612f8 100644 (file)
@@ -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>`.