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