aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-05-09 03:54:44 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-05-09 04:32:23 +0530
commita61f4b287b6c6532b1da198df87b97a122790e34 (patch)
treef7737439e844d94543da17a764a9b40f7f5c266b /yt_dlp/YoutubeDL.py
parent486fb1797547bc83995d1b1c1bd98ffc39ae8deb (diff)
downloadhypervideo-pre-a61f4b287b6c6532b1da198df87b97a122790e34.tar.lz
hypervideo-pre-a61f4b287b6c6532b1da198df87b97a122790e34.tar.xz
hypervideo-pre-a61f4b287b6c6532b1da198df87b97a122790e34.zip
Deprecate support for python versions < 3.6
Closes #267
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index e5079a859..0111246ca 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -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(