azure-batch/azure/batch/custom/patch.py
def _handle_output(results_queue):
    """Scan output for exceptions

    If there is an output from an add task collection call add it to the results.

    :param results_queue: Queue containing results of attempted add_collection's
    :type results_queue: collections.deque
    :return: list of TaskAddResults
    :rtype: list[~TaskAddResult]
    """
    results = []
    while results_queue:
        queue_item = results_queue.pop()
        results.append(queue_item)
    return results
def _handle_output(results_queue):
    results = []
    while results_queue:
        queue_item = results_queue.pop()
        results.append(queue_item)
    return results
def _handle_output ( results_queue ) : results = [ ] while results_queue : queue_item = results_queue . pop ( ) results . append ( queue_item ) return results
Scan output for exceptions

    If there is an output from an add task collection call add it to the results.

    :param results_queue: Queue containing results of attempted add_collection's
    :type results_queue: collections.deque
    :return: list of TaskAddResults
    :rtype: list[~TaskAddResult]
Scan output for exceptions