SIGN IN SIGN UP

GH-90208: Suppress OSError exceptions from `pathlib.Path.glob()` (GH-104141)

`pathlib.Path.glob()` now suppresses all OSError exceptions, except
those raised from calling `is_dir()` on the top-level path.

Previously, `glob()` suppressed ENOENT, ENOTDIR, EBADF and ELOOP
errors and their Windows equivalents. PermissionError was also
suppressed unless it occurred when calling `is_dir()` on the
top-level path. However, the selector would abort prematurely
if a PermissionError was raised, and so `glob()` could return
incomplete results.
B
Barney Gale committed
94f30c75576bb8a20724b2ac758fa33af089a522
Parent: 373bca0
Committed by GitHub <noreply@github.com> on 5/11/2023, 12:01:39 AM