summaryrefslogtreecommitdiffstats
path: root/Lib/ntpath.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-10-25 15:26:38 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2018-10-25 15:26:37 (GMT)
commitd03b7757811ae51277f8ed399a9a0fd78dfd3425 (patch)
tree938010059a3be971925c6d0fbc71e3b63b697076 /Lib/ntpath.py
parente25d5fc18e6c4b0062cd71b2eb1fd2d5eb5e2d3d (diff)
downloadcpython-d03b7757811ae51277f8ed399a9a0fd78dfd3425.zip
cpython-d03b7757811ae51277f8ed399a9a0fd78dfd3425.tar.gz
cpython-d03b7757811ae51277f8ed399a9a0fd78dfd3425.tar.bz2
bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082)
Regression in b0bf51b32240369ccb736dc32ff82bb96f375402.
Diffstat (limited to 'Lib/ntpath.py')
-rw-r--r--Lib/ntpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ntpath.py b/Lib/ntpath.py
index 0e6de28..11bb297 100644
--- a/Lib/ntpath.py
+++ b/Lib/ntpath.py
@@ -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)