def simplefilter(action, category=Warning, lineno=<NUM_LIT:0>, append=<NUM_LIT:0>):
assert action in ("<STR_LIT:error>", "<STR_LIT:ignore>", "<STR_LIT>", "<STR_LIT:default>", "<STR_LIT>",<EOL>"<STR_LIT>"), "<STR_LIT>" % (action,)<EOL>assert isinstance(lineno, int) and lineno >= <NUM_LIT:0>,"<STR_LIT>"<EOL>item = (action, None, category, None, lineno)<EOL>if append:<EOL><INDENT>filters.append(item)<EOL><DEDENT>else:<EOL><INDENT>filters.insert(<NUM_LIT:0>, item)<EOL><DEDENT>
Insert a simple entry into the list of warnings filters (at the front).

    A simple filter matches all modules and messages.
    'action' -- one of "error", "ignore", "always", "default", "module",
                or "once"
    'category' -- a class that the warning must be a subclass of
    'lineno' -- an integer line number, 0 matches all warnings
    'append' -- if true, append to the list of filters