[compat] Split into sub-modules (#2173)
Authored by: fstirlitz, pukkandan
This commit is contained in:
parent
19a0394044
commit
77f9033095
11 changed files with 274 additions and 318 deletions
14
yt_dlp/compat/re.py
Normal file
14
yt_dlp/compat/re.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# flake8: noqa: F405
|
||||
|
||||
from re import * # F403
|
||||
|
||||
try:
|
||||
Pattern # >= 3.7
|
||||
except NameError:
|
||||
Pattern = type(compile(''))
|
||||
|
||||
|
||||
try:
|
||||
Match # >= 3.7
|
||||
except NameError:
|
||||
Match = type(compile('').match(''))
|
||||
Loading…
Add table
Add a link
Reference in a new issue