mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-28 03:30:36 +00:00
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
This commit is contained in:
parent
37e4981089
commit
2fbd49dd0b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue