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

Skip to content

Commit e0cb9af

Browse files
committed
Revert "Fix a glaring error in the logic backport of posixpath."
This reverts commit b357f2b, which was never meant to go into 3.10.
1 parent b357f2b commit e0cb9af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/posixpath.py

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

0 commit comments

Comments
 (0)
0