def _api_queue_priority(output, value, kwargs):
 value2 = kwargs.get('value2')
 if (value and value2):
  try:
   try:
    priority = int(value2)
   except:
    return report(output, _MSG_INT_VALUE)
   pos = set_priority(value, priority)
   return report(output, keyword='position', data=pos)
  except:
   return report(output, _MSG_NO_VALUE2)
 else:
  return report(output, _MSG_NO_VALUE2)

def _api_queue_priority ( output , value , kwargs ) : value2 = kwargs . get ( 'value2' ) if ( value and value2 ) : try : try : priority = int ( value2 ) except : return report ( output , _MSG_INT_VALUE ) pos = set_priority ( value , priority ) return report ( output , keyword = 'position' , data = pos ) except : return report ( output , _MSG_NO_VALUE2 ) else : return report ( output , _MSG_NO_VALUE2 )
api: accepts output .