def has_links(html):
    # Call bleach.linkify to transform text links to real links, and add some
    # content to the ``href`` attribute. If the result is different from the
    # initial string, links were found.
    class LinkFound(Exception):
        pass

    def raise_on_link(attrs, new):
        raise LinkFound

    try:
        bleach.linkify(html, callbacks=[raise_on_link])
    except LinkFound:
        return True
    return False
Returns the size of the file-like object.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/amo/utils.py/has_links--crossover with--dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/file_io/tsk_file_io.py/TSKFile.get_size