mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
GH-88013: Fix TypeError raised by ntpath.realpath in some cases (GH-102813)
This commit is contained in:
parent
995386071f
commit
4dc339b4d6
3 changed files with 10 additions and 1 deletions
|
|
@ -670,7 +670,7 @@ else:
|
|||
|
||||
# Non-strict algorithm is to find as much of the target directory
|
||||
# as we can and join the rest.
|
||||
tail = ''
|
||||
tail = path[:0]
|
||||
while path:
|
||||
try:
|
||||
path = _getfinalpathname(path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue