Пример #1
0
def not_only_imgs(attachment):
    for a in attachment:
        if isinstance(a, dict) and not _is_img(a["url"]):
            return True
        if isinstance(a, str) and not _is_img(a):
            return True
    return False
Пример #2
0
def is_img(filename):
    return _is_img(filename)