From 2fbd49dd0bc977e92d89042b34c36bbfbfb576b9 Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Sat, 29 Aug 2020 16:57:57 +0100 Subject: [PATCH] Replace os.path.splitunc() with os.path.splitdrive() os.path.splitunc() removed in Python 3.7. https://docs.python.org/3/whatsnew/3.7.html#api-and-feature-removals --- linkcheck/checker/fileurl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkcheck/checker/fileurl.py b/linkcheck/checker/fileurl.py index 8f0134e3..e0450f07 100644 --- a/linkcheck/checker/fileurl.py +++ b/linkcheck/checker/fileurl.py @@ -54,7 +54,7 @@ def prepare_urlpath_for_nt(path): def get_nt_filename(path): """Return case sensitive filename for NT path.""" - unc, rest = os.path.splitunc(path) + unc, rest = os.path.splitdrive(path) head, tail = os.path.split(rest) if not tail: return path