aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/compat.py')
-rw-r--r--yt_dlp/compat.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/yt_dlp/compat.py b/yt_dlp/compat.py
index 9bf05c737..b107b2114 100644
--- a/yt_dlp/compat.py
+++ b/yt_dlp/compat.py
@@ -159,6 +159,12 @@ except ImportError:
compat_pycrypto_AES = None
+def windows_enable_vt_mode(): # TODO: Do this the proper way https://bugs.python.org/issue30075
+ if compat_os_name != 'nt':
+ return
+ os.system('')
+
+
# Deprecated
compat_basestring = str
@@ -281,5 +287,6 @@ __all__ = [
'compat_xml_parse_error',
'compat_xpath',
'compat_zip',
+ 'windows_enable_vt_mode',
'workaround_optparse_bug9161',
]