aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/compat/_deprecated.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-04-29 07:18:36 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-04-29 07:39:33 +0530
commit1d485a1a799bbeeb2faea0595676ca7d4c0f3716 (patch)
tree17e1f06c8a4e3a1fa8083c2017812988e6acc8f5 /yt_dlp/compat/_deprecated.py
parent0a41f331cc3e06007b8d1abe104da196c565b505 (diff)
downloadhypervideo-pre-1d485a1a799bbeeb2faea0595676ca7d4c0f3716.tar.lz
hypervideo-pre-1d485a1a799bbeeb2faea0595676ca7d4c0f3716.tar.xz
hypervideo-pre-1d485a1a799bbeeb2faea0595676ca7d4c0f3716.zip
[cleanup] Misc fixes
Closes #3565, https://github.com/yt-dlp/yt-dlp/issues/3514#issuecomment-1105944364
Diffstat (limited to 'yt_dlp/compat/_deprecated.py')
-rw-r--r--yt_dlp/compat/_deprecated.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/yt_dlp/compat/_deprecated.py b/yt_dlp/compat/_deprecated.py
index f84439825..390f76577 100644
--- a/yt_dlp/compat/_deprecated.py
+++ b/yt_dlp/compat/_deprecated.py
@@ -44,4 +44,9 @@ compat_urllib_parse_urlparse = urllib.parse.urlparse
compat_urllib_request = urllib.request
compat_urlparse = compat_urllib_parse = urllib.parse
+
+def compat_setenv(key, value, env=os.environ):
+ env[key] = value
+
+
__all__ = [x for x in globals() if x.startswith('compat_')]