bpo-37478: Specify possible exceptions for os.chdir() (GH-14611) (GH-14629)

(cherry picked from commit 0717b4d9b3)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
This commit is contained in:
Miss Islington (bot) 2019-07-06 19:18:50 -07:00 committed by Terry Jan Reedy
parent 90631f9bc5
commit 4e6bfc4c60
2 changed files with 4 additions and 0 deletions

View file

@ -1599,6 +1599,9 @@ features:
This function can support :ref:`specifying a file descriptor <path_fd>`. The
descriptor must refer to an opened directory, not an open file.
This function can raise :exc:`OSError` subclasses such as
:exc:`FileNotFoundError`, :exc:`PermissionError`, and :exc:`NotADirectoryError`.
.. versionadded:: 3.3
Added support for specifying *path* as a file descriptor
on some platforms.

View file

@ -0,0 +1 @@
Added possible exceptions to the description of os.chdir().