Skip to content

Commit

Permalink
add comment about why some args exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Aug 3, 2014
1 parent e36bf1f commit b2eb9a6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions supervisor/rpcinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b2eb9a6

Please sign in to comment.