]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-125620: Remove unnecessary import of subprocess in spawnv_passfds (#125624)
authorFurkan Onder <furkanonder@protonmail.com>
Wed, 16 Oct 2024 22:42:29 +0000 (01:42 +0300)
committerGitHub <noreply@github.com>
Wed, 16 Oct 2024 22:42:29 +0000 (22:42 +0000)
Remove unnecessary import of subprocess in multiprocessing.util.spawnv_passfds.

Lib/multiprocessing/util.py

index d48ef8a86b34e1edfbaec12fd56d7f06e70165c0..b7192042b9cf4748afd3c11c6645eb36957d12cc 100644 (file)
@@ -438,7 +438,6 @@ def _flush_std_streams():
 
 def spawnv_passfds(path, args, passfds):
     import _posixsubprocess
-    import subprocess
     passfds = tuple(sorted(map(int, passfds)))
     errpipe_read, errpipe_write = os.pipe()
     try: