mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-01-05 22:41:18 +00:00
18
yt_dlp/compat/re.py
Normal file
18
yt_dlp/compat/re.py
Normal 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(''))
|
||||
Reference in New Issue
Block a user