def priority_sorter(registry, xml_parent, data):
 priority_sorter_tag = XML.SubElement(xml_parent, 'hudson.queueSorter.PrioritySorterJobProperty')
 try:
  XML.SubElement(priority_sorter_tag, 'priority').text = str(data['priority'])
 except KeyError as e:
  raise MissingAttributeError(e)

def priority_sorter ( registry , xml_parent , data ) : priority_sorter_tag = XML . SubElement ( xml_parent , 'hudson.queueSorter.PrioritySorterJobProperty' ) try : XML . SubElement ( priority_sorter_tag , 'priority' ) . text = str ( data [ 'priority' ] ) except KeyError as e : raise MissingAttributeError ( e )
yaml: priority-sorter allows simple ordering of builds .