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