[ie/soundcloud] Various fixes (#11820)
[yt-dlp.git] / yt_dlp / compat / _deprecated.py
blob445acc1a063a87ac60385141ffc4f7a844960af0
1 """Deprecated - New code should avoid these"""
2 import warnings
4 from .compat_utils import passthrough_module
6 # XXX: Implement this the same way as other DeprecationWarnings without circular import
7 passthrough_module(__name__, '.._legacy', callback=lambda attr: warnings.warn(
8 DeprecationWarning(f'{__name__}.{attr} is deprecated'), stacklevel=6))
9 del passthrough_module
11 import functools # noqa: F401
12 import os
15 compat_os_name = os.name
16 compat_realpath = os.path.realpath
19 def compat_shlex_quote(s):
20 from ..utils import shell_quote
21 return shell_quote(s)