aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/downloader/fragment.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-08-30 20:58:28 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-08-30 21:03:07 +0530
commitda4db748fa813a8de684d5ab699b8f561b982e35 (patch)
treeb3a393bb7d9ed79c698783f3ce21fc08ac642455 /yt_dlp/downloader/fragment.py
parente1eabd7beb4cc83338a7422546ae1c9ae8b2097f (diff)
downloadhypervideo-pre-da4db748fa813a8de684d5ab699b8f561b982e35.tar.lz
hypervideo-pre-da4db748fa813a8de684d5ab699b8f561b982e35.tar.xz
hypervideo-pre-da4db748fa813a8de684d5ab699b8f561b982e35.zip
[utils] Add `deprecation_warning`
See https://github.com/yt-dlp/yt-dlp/pull/2173#issuecomment-1097021515
Diffstat (limited to 'yt_dlp/downloader/fragment.py')
-rw-r--r--yt_dlp/downloader/fragment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/downloader/fragment.py b/yt_dlp/downloader/fragment.py
index b1d3127c3..a5d70d0d4 100644
--- a/yt_dlp/downloader/fragment.py
+++ b/yt_dlp/downloader/fragment.py
@@ -65,8 +65,8 @@ class FragmentFD(FileDownloader):
"""
def report_retry_fragment(self, err, frag_index, count, retries):
- self.deprecation_warning(
- 'yt_dlp.downloader.FragmentFD.report_retry_fragment is deprecated. Use yt_dlp.downloader.FileDownloader.report_retry instead')
+ self.deprecation_warning('yt_dlp.downloader.FragmentFD.report_retry_fragment is deprecated. '
+ 'Use yt_dlp.downloader.FileDownloader.report_retry instead')
return self.report_retry(err, count, retries, frag_index)
def report_skip_fragment(self, frag_index, err=None):