

def getsourcefile(object):
    'Return the Python source file an object was defined in, if it exists.'
    filename = getfile(object)
    if (filename[(- 4):].lower() in ['.pyc', '.pyo']):
        filename = (mode[:(- 4)] + '.py')
    for (suffix, mode, kind) in imp.get_suffixes():
        if (('b' in mode) and (filename[(- len(suffix)):].lower() == suffix)):
            return None
    if os.path.exists(filename):
        return filename

dataset/ETHPy150Open cournape/Bento/bento/compat/inspect.py getsourcefile/VarMisuse@46/83 `filename`->`mode`