commit | 4696f1285d83dd7b69f459c63e14080b1f87f797 | [log] [tgz] |
---|---|---|
author | Steve Dower <steve.dower@python.org> | Thu Apr 22 21:04:44 2021 +0100 |
committer | GitHub <noreply@github.com> | Thu Apr 22 21:04:44 2021 +0100 |
tree | 9e832b30c9fb55d55ff0a7e56c729c529bbc9e1c | |
parent | a911bd15a19824c92af8e90b63af4a84a9670222 [diff] |
bpo-35306: Avoid raising OSError from pathlib.Path.exists when passed an invalid filename (GH-25529)
diff --git a/Lib/pathlib.py b/Lib/pathlib.py index 1518d49..ebc2c02 100644 --- a/Lib/pathlib.py +++ b/Lib/pathlib.py
@@ -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 )