[3.9] documentation: clarification about the function remove in os library (GH-19024) (GH-25620)

(cherry picked from commit b6daab2f67)

Co-authored-by: Etienne Gautier <etienne.gautier@outlook.com>
This commit is contained in:
Senthil Kumaran 2021-04-25 21:30:32 -07:00 committed by GitHub
parent 4cb98169b3
commit debb23fae6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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>`.