summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-04-26 04:24:03 (GMT)
committerGitHub <noreply@github.com>2021-04-26 04:24:03 (GMT)
commitc5ce186e975c17470dfe234a2222c1f12ecc81e4 (patch)
treea30345cbcc4587cb758bed3378947de4f12f069a
parent6d4556f375977f4555fc2ec05c84063a425197a1 (diff)
downloadcpython-c5ce186e975c17470dfe234a2222c1f12ecc81e4.zip
cpython-c5ce186e975c17470dfe234a2222c1f12ecc81e4.tar.gz
cpython-c5ce186e975c17470dfe234a2222c1f12ecc81e4.tar.bz2
documentation: clarification about the function remove in os library (GH-19024) (GH-25618)
(cherry picked from commit b6daab2f676de1773d8f35fb362fe4c57449301d) Co-authored-by: Etienne Gautier <etienne.gautier@outlook.com>
-rw-r--r--Doc/library/os.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index c80a321..719ea5b 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -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>`.