https://github.com/python/cpython/commit/b357f2bca375948aca03047d9209ce364e64bfa4
commit: b357f2bca375948aca03047d9209ce364e64bfa4
branch: 3.10
author: Thomas Wouters <[email protected]>
committer: Yhg1s <[email protected]>
date: 2025-06-03T14:12:21+02:00
summary:
Fix a glaring error in the logic backport of posixpath.
files:
M Lib/posixpath.py
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index e550b470da5beb..085a23d8e5934e 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -429,9 +429,7 @@ def _joinrealpath(path, rest, strict, seen):
newpath = join(path, name)
try:
st = os.lstat(newpath)
- except OSError:
- if strict:
- raise
+ except ignored_error:
is_link = False
else:
is_link = stat.S_ISLNK(st.st_mode)
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]