def get_process_terminal(self): tty_nr = _psutil_bsd.get_process_tty_nr(self.pid) tmap = _psposix._get_terminal_map() try: return tmap[tty_nr] except KeyError: return None
def get_process_terminal(self): tty_nr = _psutil_bsd.get_process_tty_nr(self.pid) try: return _TERMINAL_MAP[tty_nr] except KeyError: return None