import logging


def load_seedlist(handle):
    """
    Loads seeds from the given handle.

    :param io.file handle

    :rtype: List[int]
    """

    logging.info('Loading seeds')

    stripped_data = (l.strip() for l in handle)

    filtered_data = (l for l in handle if l)

    seeds = [int(x) for x in filtered_data]

    logging.info('Loaded {} seeds'.format(len(seeds)))

    return seeds