Deprecate support for python versions < 3.6

Closes #267
This commit is contained in:
pukkandan
2021-05-09 03:54:44 +05:30
parent 486fb17975
commit a61f4b287b
2 changed files with 13 additions and 6 deletions

View File

@@ -463,6 +463,11 @@ class YoutubeDL(object):
self.params.update(params)
self.cache = Cache(self)
if sys.version_info < (3, 6):
self.report_warning(
'Support for Python version %d.%d have been deprecated and will break in future versions of yt-dlp! '
'Update to Python 3.6 or above' % sys.version_info[:2])
def check_deprecated(param, option, suggestion):
if self.params.get(param) is not None:
self.report_warning(