summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2021-12-23 09:17:31 (GMT)
committerGitHub <noreply@github.com>2021-12-23 09:17:31 (GMT)
commit71ef0b4c2b77195bb1adc42602549284f7ee9566 (patch)
tree665a7cbe56718dd952ca582dc9f52fce2fa3d771 /Doc/library/os.rst
parent31ff96712e8f89ac1056c2da880b44650002219f (diff)
downloadcpython-71ef0b4c2b77195bb1adc42602549284f7ee9566.zip
cpython-71ef0b4c2b77195bb1adc42602549284f7ee9566.tar.gz
cpython-71ef0b4c2b77195bb1adc42602549284f7ee9566.tar.bz2
bpo-46157: fix typo in docs (GH-30237)
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 8092397..8e11c69 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -2081,7 +2081,7 @@ features:
directories you can set the umask before invoking :func:`makedirs`. The
file permission bits of existing parent directories are not changed.
- If *exist_ok* is ``False`` (the default), an :exc:`FileExistsError` is
+ If *exist_ok* is ``False`` (the default), a :exc:`FileExistsError` is
raised if the target directory already exists.
.. note::
@@ -2357,7 +2357,7 @@ features:
.. function:: rmdir(path, *, dir_fd=None)
Remove (delete) the directory *path*. If the directory does not exist or is
- not empty, an :exc:`FileNotFoundError` or an :exc:`OSError` is raised
+ not empty, a :exc:`FileNotFoundError` or an :exc:`OSError` is raised
respectively. In order to remove whole directory trees,
:func:`shutil.rmtree` can be used.