def simplefilter(action, category=Warning, lineno=0, append=0):
    assert action in ("error", "ignore", "always", "default", "module",
                      "once"), "invalid action: %r" % (action,)
    assert isinstance(lineno, int) and lineno >= 0, \
           "lineno must be an int >= 0"
    item = (action, None, category, None, lineno)
    if append:
        filters.append(item)
    else:
        filters.insert(0, item)
Insert a simple entry into the list of warnings filters (at the front).
dataset/ETHPy150Open babble/babble/include/jython/Lib/warnings.py/simplefilter