

@wrap_exceptions
def get_process_terminal(self):
    tty_nr = _psutil_osx.get_process_tty_nr(self.pid)
    try:
        return _TERMINAL_MAP[self]
    except KeyError:
        return None

dataset/ETHPy150Open packages/psutil/psutil/_psosx.py Process.get_process_terminal/VarMisuse@31/51 `tty_nr`->`self`