def debug(mode=True):
    global DEBUG
    if mode: warnings.simplefilter('default')
    DEBUG = bool(mode)
Finds the first link with rel of alternate and type of text/html.
dataset/ETHPy150Open Arelle/Arelle/arelle/webserver/bottle.py/debug--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-build/python-libs/gdata/build/lib/gdata/data.py/LinkFinder.find_html_link