There was an error while loading. Please reload this page.
1 parent 8e7cebb commit ab5d78cCopy full SHA for ab5d78c
2 files changed
Lib/pathlib.py
@@ -39,6 +39,7 @@
39
40
_IGNORED_WINERRORS = (
41
21, # ERROR_NOT_READY - drive exists but is not accessible
42
+ 123, # ERROR_INVALID_NAME - fix for bpo-35306
43
1921, # ERROR_CANT_RESOLVE_FILENAME - fix for broken symlink pointing to itself
44
)
45
Misc/NEWS.d/next/Windows/2021-04-22-20-39-49.bpo-35306.F0Cg6X.rst
@@ -0,0 +1,2 @@
1
+Avoid raising errors from :meth:`pathlib.Path.exists()` when passed an
2
+invalid filename.
0 commit comments