]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] documentation: clarification about the function remove in os library (GH-19024...
authorSenthil Kumaran <senthil@uthcode.com>
Mon, 26 Apr 2021 04:30:32 +0000 (21:30 -0700)
committerGitHub <noreply@github.com>
Mon, 26 Apr 2021 04:30:32 +0000 (21:30 -0700)
(cherry picked from commit b6daab2f676de1773d8f35fb362fe4c57449301d)

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

index 2aea2105c36468023c1ab8a011805a70317e465c..0c6f0b86cd74fb455f359c9bb3e9b1d87b132c44 100644 (file)
@@ -2115,6 +2115,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>`.