def func_lineno(func):
try:<EOL><INDENT>return func.compat_co_firstlineno<EOL><DEDENT>except AttributeError:<EOL><INDENT>try:<EOL><INDENT>return func.func_code.co_firstlineno<EOL><DEDENT>except AttributeError:<EOL><INDENT>return -<NUM_LIT:1><EOL><DEDENT><DEDENT>
Get the line number of a function. First looks for
    compat_co_firstlineno, then func_code.co_first_lineno.