8000 bpo-37478: Specify possible exceptions for os.chdir() by aeros · Pull Request #14611 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 7, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix exception tag
Where ``NotADirectoryError`` was added to the docs for os.chdir(), there was a missing ``:`` behind ``exc:``
  • Loading branch information
aeros authored Jul 6, 2019
commit 8b515b3f2a1522fd5ad8fb793d9fde0db67d4bdf
2 changes: 1 addition & 1 deletion Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@ features:
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`.
:exc:`FileNotFoundError`, :exc:`PermissionError`, and :exc:`NotADirectoryError`.

.. versionadded:: 3.3
Added support for specifying *path* as a file descriptor
Expand Down
0