

@staticmethod
def _collect_uncolored_outputs(unspent_outputs, amount):
    '\n        Returns a list of uncolored outputs for the specified amount.\n\n        :param list[SpendableOutput] unspent_outputs: The list of available outputs.\n        :param int amount: The amount to collect.\n        :return: A list of outputs, and the total amount collected.\n        :rtype: (list[SpendableOutput], int)\n        '
    total_amount = 0
    result = []
    for output in unspent_outputs:
        if (output.output.asset_id is None):
            result.append(output)
            total_amount += output.output.value
        if (total_amount >= amount):
            return (result, total_amount)
    raise InsufficientFundsError

dataset/ETHPy150Open OpenAssets/openassets/openassets/transactions.py TransactionBuilder._collect_uncolored_outputs/original