aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/compat/_legacy.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-07-22 09:08:12 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-07-22 09:09:52 +0530
commit62b5c94cadaa5f596dc1a7083db9db12efe357be (patch)
tree4a1035e30da1d88345252118b5f4083284775833 /yt_dlp/compat/_legacy.py
parente0c4db04dc82a699bdabd9821ddc239ebe17d30a (diff)
downloadhypervideo-pre-62b5c94cadaa5f596dc1a7083db9db12efe357be.tar.lz
hypervideo-pre-62b5c94cadaa5f596dc1a7083db9db12efe357be.tar.xz
hypervideo-pre-62b5c94cadaa5f596dc1a7083db9db12efe357be.zip
[cleanup] Misc fixes
Closes #7528
Diffstat (limited to 'yt_dlp/compat/_legacy.py')
-rw-r--r--yt_dlp/compat/_legacy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/compat/_legacy.py b/yt_dlp/compat/_legacy.py
index 912907a02..90ccf0f14 100644
--- a/yt_dlp/compat/_legacy.py
+++ b/yt_dlp/compat/_legacy.py
@@ -16,12 +16,12 @@ import shlex
import shutil
import socket
import struct
+import subprocess
import tokenize
import urllib.error
import urllib.parse
import urllib.request
import xml.etree.ElementTree as etree
-from subprocess import DEVNULL
# isort: split
import asyncio # noqa: F401
@@ -85,7 +85,7 @@ compat_socket_create_connection = socket.create_connection
compat_Struct = struct.Struct
compat_struct_pack = struct.pack
compat_struct_unpack = struct.unpack
-compat_subprocess_get_DEVNULL = lambda: DEVNULL
+compat_subprocess_get_DEVNULL = lambda: subprocess.DEVNULL
compat_tokenize_tokenize = tokenize.tokenize
compat_urllib_error = urllib.error
compat_urllib_HTTPError = urllib.error.HTTPError