We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d067871 commit 576783dCopy full SHA for 576783d
Doc/library/os.rst
@@ -2732,8 +2732,9 @@ features:
2732
.. function:: remove(path, *, dir_fd=None)
2733
2734
Remove (delete) the file *path*. If *path* is a directory, an
2735
- :exc:`OSError` is raised. The exact exception type depends on the platform:
2736
- for example, :exc:`IsADirectoryError` or :exc:`PermissionError`.
+ :exc:`OSError` is raised. The exact subclass depends on the platform:
+ for example, :exc:`IsADirectoryError` on Linux or :exc:`PermissionError`
2737
+ on macOS.
2738
Use :func:`rmdir` to remove directories.
2739
If the file does not exist, a :exc:`FileNotFoundError` is raised.
2740
0 commit comments