diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 38aefb9b999d22..803ac8bd697a48 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -2793,9 +2793,10 @@ features: This function can support :ref:`paths relative to directory descriptors `. - On Windows, attempting to remove a file that is in use causes an exception to - be raised; on Unix, the directory entry is removed but the storage allocated - to the file is not made available until the original file is no longer in use. + On Windows, attempting to remove a file that is in use may raise + :exc:`PermissionError`; on Unix, the directory entry is removed but the + storage allocated to the file is not made available until the original file + is no longer in use. This function is semantically identical to :func:`unlink`.