diff options
author | Barney Gale <barney.gale@gmail.com> | 2023-09-26 16:57:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-26 16:57:17 (GMT) |
commit | ecd813f054e0dee890d484b8210e202175abd632 (patch) | |
tree | d3f337b83ab0936b04c00f34f2f3a30e96d78405 /Misc | |
parent | 859618c8cd5de86a975e68d7e5d20c04bc5db2e5 (diff) | |
download | cpython-ecd813f054e0dee890d484b8210e202175abd632.zip cpython-ecd813f054e0dee890d484b8210e202175abd632.tar.gz cpython-ecd813f054e0dee890d484b8210e202175abd632.tar.bz2 |
GH-109187: Improve symlink loop handling in `pathlib.Path.resolve()` (GH-109192)
Treat symlink loops like other errors: in strict mode, raise `OSError`, and
in non-strict mode, do not raise any exception.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-09-09-17-09-54.gh-issue-109187.dIayNW.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-09-09-17-09-54.gh-issue-109187.dIayNW.rst b/Misc/NEWS.d/next/Library/2023-09-09-17-09-54.gh-issue-109187.dIayNW.rst new file mode 100644 index 0000000..31b3ef7 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-09-09-17-09-54.gh-issue-109187.dIayNW.rst @@ -0,0 +1,3 @@ +:meth:`pathlib.Path.resolve` now treats symlink loops like other errors: in +strict mode, :exc:`OSError` is raised, and in non-strict mode, no exception +is raised. |