def resolve_possible_pending_xrefs(app, fromdocname, maybe_xrefs):
 result = []
 for node in maybe_xrefs:
  if isinstance(node, addnodes.pending_xref):
   result.extend(resolve_pending_xref(app, fromdocname, node.deepcopy()))
  else:
   result.append(node)
 return result

def resolve_possible_pending_xrefs ( app , fromdocname , maybe_xrefs ) : result = [ ] for node in maybe_xrefs : if isinstance ( node , addnodes . pending_xref ) : result . extend ( resolve_pending_xref ( app , fromdocname , node . deepcopy ( ) ) ) else : result . append ( node ) return result
if any node is a pending_xref .