def nodesplit(name):
 parts = name.split(NODENAME_SEP, 1)
 if (len(parts) == 1):
  return (None, parts[0])
 return parts

def nodesplit ( name ) : parts = name . split ( NODENAME_SEP , 1 ) if ( len ( parts ) == 1 ) : return ( None , parts [ 0 ] ) return parts
split node name into tuple of name/hostname .