yt-dlp/yt_dlp/compat/re.py

15 lines
210 B
Python
Raw Normal View History

# 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(''))