mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082)
Regression in b0bf51b322
.
This commit is contained in:
parent
e25d5fc18e
commit
d03b775781
3 changed files with 5 additions and 1 deletions
|
@ -523,7 +523,7 @@ else: # use native Windows method on Windows
|
|||
def abspath(path):
|
||||
"""Return the absolute version of a path."""
|
||||
try:
|
||||
return _getfullpathname(path)
|
||||
return normpath(_getfullpathname(path))
|
||||
except (OSError, ValueError):
|
||||
return _abspath_fallback(path)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue