[utils] Add deprecation_warning
See https://github.com/yt-dlp/yt-dlp/pull/2173#issuecomment-1097021515
This commit is contained in:
parent
e1eabd7beb
commit
da4db748fa
12 changed files with 67 additions and 40 deletions
|
|
@ -25,6 +25,7 @@ from .utils import (
|
|||
OUTTMPL_TYPES,
|
||||
POSTPROCESS_WHEN,
|
||||
Config,
|
||||
deprecation_warning,
|
||||
expand_path,
|
||||
format_field,
|
||||
get_executable_path,
|
||||
|
|
@ -1864,7 +1865,6 @@ def create_parser():
|
|||
|
||||
|
||||
def _hide_login_info(opts):
|
||||
write_string(
|
||||
'DeprecationWarning: "yt_dlp.options._hide_login_info" is deprecated and may be removed in a future version. '
|
||||
'Use "yt_dlp.utils.Config.hide_login_info" instead\n')
|
||||
deprecation_warning(f'"{__name__}._hide_login_info" is deprecated and may be removed '
|
||||
'in a future version. Use "yt_dlp.utils.Config.hide_login_info" instead')
|
||||
return Config.hide_login_info(opts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue