warn about python 2

This commit is contained in:
Laura Liberda 2021-02-10 22:22:37 +01:00
parent 46643f645d
commit f603f36c3f

View file

@ -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)):