From 66893a3f352c936713256e9f1f9e0f24cfe5ea3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Wed, 11 Nov 2015 12:01:33 +0100 Subject: [PATCH] Change deprecated function --- youtube_dl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index d39f313a4..6a0c6f314 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -361,7 +361,7 @@ def sanitize_path(s): return s drive_or_unc, _ = os.path.splitdrive(s) if sys.version_info < (2, 7) and not drive_or_unc: - drive_or_unc, _ = os.path.splitunc(s) + drive_or_unc, _ = os.path.splitdrive(s) norm_path = os.path.normpath(remove_start(s, drive_or_unc)).split(os.path.sep) if drive_or_unc: norm_path.pop(0)