2023-07-22 12:26:53 +00:00
|
|
|
# flake8: noqa: F403
|
2023-05-20 21:56:23 +00:00
|
|
|
from ..compat.compat_utils import passthrough_module
|
|
|
|
|
2023-07-15 09:00:08 +00:00
|
|
|
passthrough_module(__name__, '._deprecated')
|
2023-05-20 21:56:23 +00:00
|
|
|
del passthrough_module
|
|
|
|
|
|
|
|
# isort: off
|
|
|
|
from .traversal import *
|
|
|
|
from ._utils import *
|
2023-07-22 12:26:53 +00:00
|
|
|
from ._utils import _configuration_args, _get_exe_version_output # noqa: F401
|
2023-12-09 19:23:13 +00:00
|
|
|
|
|
|
|
def txt_or_none(v, default=None):
|
|
|
|
""" Combine str/strip_or_none, disallow blank value (for traverse_obj) """
|
|
|
|
return default if v is None else (str(v).strip() or default)
|
|
|
|
|
|
|
|
def T(x):
|
|
|
|
""" For use in yt-dl instead of {type} or set((type,)) """
|
|
|
|
return set((x,))
|