()
return "L:%s  %s" % (line, module)
Return the line and module of the caller function.
Return the line and module of the caller function.
Return the line and module of the caller function .
def get_caller():
    """Return the line and module of the caller function."""
    tb = traceback.extract_stack()[-3]
    module = os.path.splitext(os.path.basename(tb[0]))[0].ljust(18)
    line = str(tb[1]).ljust(4)
    return "L:%s  %s" % (line, module)
def get_caller ( ) : tb = traceback . extract_stack ( ) [ - 3 ] module = os . path . splitext ( os . path . basename ( tb [ 0 ] ) ) [ 0 ] . ljust ( 18 ) line = str ( tb [ 1 ] ) . ljust ( 4 ) return "L:%s  %s" % ( line , module )