warn about python 2
This commit is contained in:
parent
46643f645d
commit
f603f36c3f
|
@ -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)):
|
||||
|
|
Loading…
Reference in a new issue