From f603f36c3ff827c3d990d3c4efb67cb4e562e9d9 Mon Sep 17 00:00:00 2001 From: Laura Liberda Date: Wed, 10 Feb 2021 22:22:37 +0100 Subject: [PATCH] warn about python 2 --- haruhi_dl/HaruhiDL.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/haruhi_dl/HaruhiDL.py b/haruhi_dl/HaruhiDL.py index 579776042..0a1a5a5a9 100755 --- a/haruhi_dl/HaruhiDL.py +++ b/haruhi_dl/HaruhiDL.py @@ -401,6 +401,10 @@ class HaruhiDL(object): else: raise + if sys.version_info[0] == 2: + self.report_warning( + 'Python 2 is not guaranteed to work, please use Python 3 if possible') + if (sys.platform != 'win32' and sys.getfilesystemencoding() in ['ascii', 'ANSI_X3.4-1968'] and not params.get('restrictfilenames', False)):