1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2026-01-05 22:41:18 +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

18
yt_dlp/compat/re.py Normal file
View File

@@ -0,0 +1,18 @@
# flake8: noqa: F405
from re import * # F403
from .compat_utils import passthrough_module
passthrough_module(__name__, 're')
del passthrough_module
try:
Pattern # >= 3.7
except NameError:
Pattern = type(compile(''))
try:
Match # >= 3.7
except NameError:
Match = type(compile('').match(''))