def _is_single_paragraph(node):
 if (len(node) == 0):
  return False
 elif (len(node) > 1):
  for subnode in node[1:]:
   if (not isinstance(subnode, nodes.system_message)):
    return False
 if isinstance(node[0], nodes.paragraph):
  return True
 return False

def _is_single_paragraph ( node ) : if ( len ( node ) == 0 ) : return False elif ( len ( node ) > 1 ) : for subnode in node [ 1 : ] : if ( not isinstance ( subnode , nodes . system_message ) ) : return False if isinstance ( node [ 0 ] , nodes . paragraph ) : return True return False
true if the node only contains one paragraph .