pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/111bbc15b26e6c68b2a5de57d872b5abf3d6a095

[3.9] gh-136755: Ignore additional errors in ntpath.realpath (GH-2757… · python/cpython@111bbc1 · GitHub
Skip to content

Commit 111bbc1

Browse files
[3.9] gh-136755: Ignore additional errors in ntpath.realpath (GH-27574) (GH-140008)
(cherry picked from commit 124ecd6) Co-authored-by: Michael Förderer <michael.foerderer@gmx.de>
1 parent 9c4638d commit 111bbc1

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lib/ntpath.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,12 +588,15 @@ def _getfinalpathname_nonstrict(path, ignored_error=OSError):
588588
# 21: ERROR_NOT_READY (implies drive with no media)
589589
# 32: ERROR_SHARING_VIOLATION (probably an NTFS paging file)
590590
# 50: ERROR_NOT_SUPPORTED
591+
# 53: ERROR_BAD_NETPATH
592+
# 65: ERROR_NETWORK_ACCESS_DENIED
591593
# 67: ERROR_BAD_NET_NAME (implies remote server unavailable)
592594
# 87: ERROR_INVALID_PARAMETER
593595
# 123: ERROR_INVALID_NAME
596+
# 161: ERROR_BAD_PATHNAME
594597
# 1920: ERROR_CANT_ACCESS_FILE
595598
# 1921: ERROR_CANT_RESOLVE_FILENAME (implies unfollowable symlink)
596-
allowed_winerror = 1, 2, 3, 5, 21, 32, 50, 67, 87, 123, 1920, 1921
599+
allowed_winerror = 1, 2, 3, 5, 21, 32, 50, 53, 65, 67, 87, 123, 161, 1920, 1921
597600

598601
# Non-strict algorithm is to find as much of the target directory
599602
# as we can and join the rest.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Ignore WinError 53 (ERROR_BAD_NETPATH), 65 (ERROR_NETWORK_ACCESS_DENIED)
2+
and 161 (ERROR_BAD_PATHNAME) when using ntpath.realpath().

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy