Launcher: Remove an unnecessary global (#4785)

This commit is contained in:
threeandthreee
2025-04-01 15:28:59 -04:00
committed by GitHub
parent d26db6f213
commit ff8e1dfb47

View File

@@ -88,7 +88,6 @@ processes = weakref.WeakSet()
def launch_subprocess(func: Callable, name: str | None = None, args: Tuple[str, ...] = ()) -> None: def launch_subprocess(func: Callable, name: str | None = None, args: Tuple[str, ...] = ()) -> None:
global processes
import multiprocessing import multiprocessing
process = multiprocessing.Process(target=func, name=name, args=args) process = multiprocessing.Process(target=func, name=name, args=args)
process.start() process.start()