

@wrap_exceptions
def get_connections(self, kind='inet'):
    'Return etwork connections opened by a process as a list of\n        namedtuples.\n        '
    if (kind not in conn_tmap):
        raise ValueError(('invalid %r kind argument; choose between %s' % (kind, ', '.join([repr(x) for x in conn_tmap]))))
    (families, types) = conn_tmap[kind]
    ret = _psutil_osx.get_process_connections(x.pid, families, types)
    return [nt_connection(*conn) for conn in ret]

dataset/ETHPy150Open packages/psutil/psutil/_psosx.py Process.get_connections/VarMisuse@75/147 `self`->`x`