]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/downloader/external.py
[compat] Remove more functions
[yt-dlp.git] / yt_dlp / downloader / external.py
index a1cb07e05639419f7f7d3df1ffa04d235aa891b5..dee945affda2fc1db178acaa38df6e6b8aa1e028 100644 (file)
@@ -7,7 +7,6 @@
 
 from .fragment import FragmentFD
 from ..compat import functools  # isort: split
-from ..compat import compat_setenv
 from ..postprocessor.ffmpeg import EXT_TO_OUT_FORMATS, FFmpegPostProcessor
 from ..utils import (
     Popen,
@@ -403,8 +402,8 @@ def _call_downloader(self, tmpfilename, info_dict):
             # We could switch to the following code if we are able to detect version properly
             # args += ['-http_proxy', proxy]
             env = os.environ.copy()
-            compat_setenv('HTTP_PROXY', proxy, env=env)
-            compat_setenv('http_proxy', proxy, env=env)
+            env['HTTP_PROXY'] = proxy
+            env['http_proxy'] = proxy
 
         protocol = info_dict.get('protocol')