import logging


def load_joint_order(handle):
    """
    Loads a joint order from the given handle.

    :param io.file handle

    :rtype list[str]
    """

    logging.info('Loading joint order')

    result = [line.strip() for line in handle]

    logging.info('Loaded {} joints'.format(len(result)))

    return result