8000 Fix a glaring error in the logic backport of posixpath. · python/cpython@b357f2b · GitHub
[go: up one dir, main page]

Skip to content

Commit b357f2b

Browse files
committed
Fix a glaring error in the logic backport of posixpath.
1 parent 880adf6 commit b357f2b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/posixpath.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,7 @@ def _joinrealpath(path, rest, strict, seen):
429429
newpath = join(path, name)
430430
try:
431431
st = os.lstat(newpath)
432-
except OSError:
433-
if strict:
434-
raise
432+
except ignored_error:
435433
is_link = False
436434
else:
437435
is_link = stat.S_ISLNK(st.st_mode)

0 commit comments

Comments
 (0)
0