From b2eb9a6a8cf6bee4e238ef4f33363d90ced8ded6 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 3 Aug 2014 16:47:50 -0400 Subject: [PATCH] add comment about why some args exist --- supervisor/rpcinterface.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/supervisor/rpcinterface.py b/supervisor/rpcinterface.py index 2b0981499..b76d841dd 100644 --- a/supervisor/rpcinterface.py +++ b/supervisor/rpcinterface.py @@ -784,9 +784,14 @@ def make_allfunc(processes, predicate, func, **extra_kwargs): callbacks = [] results = [] - def allfunc(processes=processes, predicate=predicate, func=func, - extra_kwargs=extra_kwargs, callbacks=callbacks, - results=results): + def allfunc( + processes=processes, + predicate=predicate, + func=func, + extra_kwargs=extra_kwargs, + callbacks=callbacks, # used only to fool scoping, never passed by caller + results=results, # used only to fool scoping, never passed by caller + ): if not callbacks: for group, process in processes: