def _ParseQueueYaml(unused_self, root_path):
 if (root_path is None):
  return None
 for queueyaml in ('queue.yaml', 'queue.yml'):
  try:
   fh = open(os.path.join(root_path, queueyaml), 'r')
  except IOError:
   continue
  try:
   queue_info = queueinfo.LoadSingleQueue(fh)
   return queue_info
  finally:
   fh.close()
 return None

def _ParseQueueYaml ( unused_self , root_path ) : if ( root_path is None ) : return None for queueyaml in ( 'queue.yaml' , 'queue.yml' ) : try : fh = open ( os . path . join ( root_path , queueyaml ) , 'r' ) except IOError : continue try : queue_info = queueinfo . LoadSingleQueue ( fh ) return queue_info finally : fh . close ( ) return None
loads the queue .