Skip to content

Commit

Permalink
pythongh-125620: Remove unnecessary import of subprocess in spawnv_pa…
Browse files Browse the repository at this point in the history
…ssfds (pythonGH-125624)

Remove unnecessary import of subprocess in multiprocessing.util.spawnv_passfds.
(cherry picked from commit a38fef4)

Co-authored-by: Furkan Onder <[email protected]>
  • Loading branch information
furkanonder authored and miss-islington committed Oct 16, 2024
1 parent 06dc0bc commit 2b7a285
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Lib/multiprocessing/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2b7a285

Please sign in to comment.