diff options
Diffstat (limited to 'yt_dlp/compat/re.py')
-rw-r--r-- | yt_dlp/compat/re.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/yt_dlp/compat/re.py b/yt_dlp/compat/re.py new file mode 100644 index 000000000..e8a6fabbd --- /dev/null +++ b/yt_dlp/compat/re.py @@ -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('')) |