1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-30 11:31:25 +00:00

Revert "Remove Python 3.6 support"

This reverts commit 6929b41a21.
This commit is contained in:
pukkandan
2022-08-19 09:37:32 +05:30
parent bf6bdf22de
commit 5dceb21df6
14 changed files with 57 additions and 23 deletions

View File

@@ -3,6 +3,7 @@ import sys
import warnings
import xml.etree.ElementTree as etree
from . import re
from ._deprecated import * # noqa: F401, F403
from .compat_utils import passthrough_module
@@ -32,7 +33,6 @@ compat_os_name = os._name if os.name == 'java' else os.name
if compat_os_name == 'nt':
def compat_shlex_quote(s):
import re
return s if re.match(r'^[-_\w./]+$', s) else '"%s"' % s.replace('"', '\\"')
else:
from shlex import quote as compat_shlex_quote # noqa: F401