[utils] Fix `compiled_regex_type` in 249f2b6
authordirkf <fieldhouse@gmx.net>
Thu, 11 May 2023 19:53:07 +0000 (20:53 +0100)
committerdirkf <fieldhouse@gmx.net>
Thu, 11 May 2023 19:53:07 +0000 (20:53 +0100)
youtube_dl/utils.py

index 65ddb3b0ffcbfcf3bf0d03cea6408aa74f28b5a7..584581b6a5b00b307b1cda30202a3e4f79c08f5b 100644 (file)
@@ -56,6 +56,7 @@ from .compat import (
     compat_kwargs,
     compat_os_name,
     compat_re_Match,
+    compat_re_Pattern,
     compat_shlex_quote,
     compat_str,
     compat_struct_pack,
@@ -86,7 +87,7 @@ def register_socks_protocols():
 
 
 # Unfavoured alias
-compiled_regex_type = compat_re_Match
+compiled_regex_type = compat_re_Pattern
 
 
 def random_user_agent():