def is_transparent(image):
    if not isinstance(image, Image.Image):
        # Can only deal with PIL images, fall back to the assumption that that
        # it's not transparent.
        return False
    return (image.mode in ('RGBA', 'LA') or
            (image.mode == 'P' and 'transparency' in image.info))
Continue retrieving results, if available.
dataset/ETHPy150Open SmileyChris/easy-thumbnails/easy_thumbnails/utils.py/is_transparent--crossover with--dataset/ETHPy150Open openstack/oslo.vmware/oslo_vmware/vim_util.py/continue_retrieval