https://github.com/python/cpython/commit/a38fef4439139743e3334c1d69f24cafdf4d71da
commit: a38fef4439139743e3334c1d69f24cafdf4d71da
branch: main
author: Furkan Onder <[email protected]>
committer: gpshead <[email protected]>
date: 2024-10-16T22:42:29Z
summary:
gh-125620: Remove unnecessary import of subprocess in spawnv_passfds (#125624)
Remove unnecessary import of subprocess in multiprocessing.util.spawnv_passfds.
files:
M Lib/multiprocessing/util.py
diff --git a/Lib/multiprocessing/util.py b/Lib/multiprocessing/util.py
index d48ef8a86b34e1..b7192042b9cf47 100644
--- a/Lib/multiprocessing/util.py
+++ b/Lib/multiprocessing/util.py
@@ -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:
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]