Depreate compat_shlex_quote

This commit is contained in:
sepro 2024-11-02 23:17:11 +01:00
parent a3c15e2762
commit 4f425e08e9
2 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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)