mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-11 03:09:35 +00:00
[utils] Add deprecation_warning
See https://github.com/yt-dlp/yt-dlp/pull/2173#issuecomment-1097021515
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user