Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions Lib/pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

_IGNORED_WINERRORS = (
21, # ERROR_NOT_READY - drive exists but is not accessible
123, # ERROR_INVALID_NAME - fix for bpo-35306
1921, # ERROR_CANT_RESOLVE_FILENAME - fix for broken symlink pointing to itself
)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Avoid raising errors from :meth:`pathlib.Path.exists()` when passed an
invalid filename.