From 4f425e08e90970bfc4d8550a42a3797ac4160d0b Mon Sep 17 00:00:00 2001 From: sepro Date: Sat, 2 Nov 2024 23:17:11 +0100 Subject: [PATCH] Depreate compat_shlex_quote --- yt_dlp/compat/__init__.py | 5 ----- yt_dlp/compat/_deprecated.py | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/yt_dlp/compat/__init__.py b/yt_dlp/compat/__init__.py index f173f141ef..375a5a2f22 100644 --- a/yt_dlp/compat/__init__.py +++ b/yt_dlp/compat/__init__.py @@ -24,11 +24,6 @@ def compat_etree_fromstring(text): return etree.XML(text, parser=etree.XMLParser(target=_TreeBuilder())) -def compat_shlex_quote(s): - from ..utils import shell_quote - return shell_quote(s) - - def compat_ord(c): return c if isinstance(c, int) else ord(c) diff --git a/yt_dlp/compat/_deprecated.py b/yt_dlp/compat/_deprecated.py index 0e97ccc928..6d947ace32 100644 --- a/yt_dlp/compat/_deprecated.py +++ b/yt_dlp/compat/_deprecated.py @@ -24,3 +24,8 @@ compat_urllib_parse_urlencode = urllib.parse.urlencode compat_urllib_parse_urlparse = urllib.parse.urlparse compat_os_name = os._name if os.name == 'java' else os.name + + +def compat_shlex_quote(s): + from ..utils import shell_quote + return shell_quote(s)