def _GetLockPending(_, data):
  (_, _, _, pending) = data

  if pending:
    pending = [(mode, utils.NiceSort(names))
               for (mode, names) in pending]

  return pending
Define a block that can be overridden by child templates.
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_GetLockPending--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/_internal/django/template/loader_tags.py/do_block