Fix a glaring error in the logic backport of posixpath.

This commit is contained in:
Thomas Wouters 2025-06-03 14:12:21 +02:00
parent 880adf6c31
commit b357f2bca3

View file

@ -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)