]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
documentation: clarification about the function remove in os library (GH-19024) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 26 Apr 2021 04:24:03 +0000 (21:24 -0700)
committerGitHub <noreply@github.com>
Mon, 26 Apr 2021 04:24:03 +0000 (21:24 -0700)
(cherry picked from commit b6daab2f676de1773d8f35fb362fe4c57449301d)

Co-authored-by: Etienne Gautier <etienne.gautier@outlook.com>
Doc/library/os.rst

index c80a3210d7d3964685c2565646940e69679f1715..719ea5b588f49a55551b0b4b88afc211c0b3be1b 100644 (file)
@@ -2106,6 +2106,7 @@ features:
 
    Remove (delete) the file *path*.  If *path* is a directory, an
    :exc:`IsADirectoryError` is raised.  Use :func:`rmdir` to remove directories.
+   If the file does not exist, a :exc:`FileNotFoundError` is raised.
 
    This function can support :ref:`paths relative to directory descriptors
    <dir_fd>`.