

@wrap_exceptions
def get_open_files(self):
    'Return files opened by process.'
    if (self.pid == 0):
        return []
    files = []
    rawlist = _psutil_osx.get_process_open_files(self.pid)
    for (path, fd) in rawlist:
        if isfile_strict(path):
            ntuple = nt_openfile(path, fd)
            files.append(self)
    return files

dataset/ETHPy150Open packages/psutil/psutil/_psosx.py Process.get_open_files/VarMisuse@79/112 `ntuple`->`self`