diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-11-29 23:16:06 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-11-29 23:34:33 +0530 |
commit | ee8dd27a7351841e1de8cebf8311b69fbef09eab (patch) | |
tree | 97d8060695b84fe0e86d45132afd72d51bf2e60b /yt_dlp/update.py | |
parent | f304da8a290ac19ac419f3fafb5891903785ebaa (diff) | |
download | hypervideo-pre-ee8dd27a7351841e1de8cebf8311b69fbef09eab.tar.lz hypervideo-pre-ee8dd27a7351841e1de8cebf8311b69fbef09eab.tar.xz hypervideo-pre-ee8dd27a7351841e1de8cebf8311b69fbef09eab.zip |
[cleanup] Add deprecation warnings
Diffstat (limited to 'yt_dlp/update.py')
-rw-r--r-- | yt_dlp/update.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/update.py b/yt_dlp/update.py index 4225512e9..aebd5d1e1 100644 --- a/yt_dlp/update.py +++ b/yt_dlp/update.py @@ -10,7 +10,7 @@ import traceback from zipimport import zipimporter from .compat import compat_realpath -from .utils import encode_compat_str, Popen +from .utils import encode_compat_str, Popen, write_string from .version import __version__ @@ -251,13 +251,13 @@ def print_notes(to_screen, versions, fromVersion=__version__): ''' +# Deprecated def update_self(to_screen, verbose, opener): - ''' Exists for backward compatibility ''' printfn = to_screen - printfn( - 'WARNING: "yt_dlp.update.update_self" is deprecated and may be removed in a future version. ' + write_string( + 'DeprecationWarning: "yt_dlp.update.update_self" is deprecated and may be removed in a future version. ' 'Use "yt_dlp.update.run_update(ydl)" instead') class FakeYDL(): |