@wrap_exceptions<EOL><INDENT>def get_connections(self, kind='<STR_LIT>'):<DEDENT>
if kind not in conn_tmap:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>% (kind, '<STR_LIT:U+002CU+0020>'.join([repr(x) for x in conn_tmap])))<EOL><DEDENT>families, types = conn_tmap[kind]<EOL>ret = _psutil_bsd.get_process_connections(self.pid, families, types)<EOL>return [nt_connection(*conn) for conn in ret]<EOL>
Return etwork connections opened by a process as a list of
        namedtuples.