aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/compat/re.py
blob: d4532950a4dc90487fbdfe604e28bb3a616a3bbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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(''))