]> jfr.im git - yt-dlp.git/blame - yt_dlp/compat/re.py
[compat] Ensure submodules are correctly wrapped
[yt-dlp.git] / yt_dlp / compat / re.py
CommitLineData
77f90330 1# flake8: noqa: F405
2
3from re import * # F403
4
9196cbfe 5from .compat_utils import passthrough_module
6
7passthrough_module(__name__, 're')
8del passthrough_module
9
77f90330 10try:
11 Pattern # >= 3.7
12except NameError:
13 Pattern = type(compile(''))
14
15
16try:
17 Match # >= 3.7
18except NameError:
19 Match = type(compile('').match(''))