[cleanup] Add deprecation warnings
This commit is contained in:
parent
f304da8a29
commit
ee8dd27a73
10 changed files with 81 additions and 18 deletions
|
|
@ -6552,10 +6552,11 @@ def traverse_obj(
|
|||
return default
|
||||
|
||||
|
||||
# Deprecated
|
||||
def traverse_dict(dictn, keys, casesense=True):
|
||||
''' For backward compatibility. Do not use '''
|
||||
return traverse_obj(dictn, keys, casesense=casesense,
|
||||
is_user_input=True, traverse_string=True)
|
||||
write_string('DeprecationWarning: yt_dlp.utils.traverse_dict is deprecated '
|
||||
'and may be removed in a future version. Use yt_dlp.utils.traverse_obj instead')
|
||||
return traverse_obj(dictn, keys, casesense=casesense, is_user_input=True, traverse_string=True)
|
||||
|
||||
|
||||
def variadic(x, allowed_types=(str, bytes)):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue