]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
documentation: clarification about the function remove in os library (GH-19024)
authorEtienne Gautier <etienne.gautier@outlook.com>
Mon, 26 Apr 2021 04:21:50 +0000 (06:21 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Apr 2021 04:21:50 +0000 (21:21 -0700)
Doc/library/os.rst

index 574aa2e6471ae4fd6b00e4e3a89340f40afdd4d9..b4c2ca9d4f66065657cdd1e699d8ef04c8725072 100644 (file)
@@ -2247,6 +2247,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>`.