From d03b7757811ae51277f8ed399a9a0fd78dfd3425 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 25 Oct 2018 11:26:38 -0400 Subject: bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082) Regression in b0bf51b32240369ccb736dc32ff82bb96f375402. --- Lib/ntpath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/ntpath.py') diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 0e6de2829f..11bb297e16 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) -- cgit v1.2.1