mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Revert "Fix a glaring error in the logic backport of posixpath."
This reverts commit b357f2bca3
, which was
never meant to go into 3.10.
This commit is contained in:
parent
b357f2bca3
commit
e0cb9afea4
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue