def parse_reftuples(lh_container, rh_container, refspecs):
 if (not isinstance(refspecs, list)):
  refspecs = [refspecs]
 ret = []
 for refspec in refspecs:
  ret.append(parse_reftuple(lh_container, rh_container, refspec))
 return ret

def parse_reftuples ( lh_container , rh_container , refspecs ) : if ( not isinstance ( refspecs , list ) ) : refspecs = [ refspecs ] ret = [ ] for refspec in refspecs : ret . append ( parse_reftuple ( lh_container , rh_container , refspec ) ) return ret
parse a list of reftuple specs to a list of reftuples .