

@wrap_exceptions
def get_process_cpu_affinity(self):
    from_bitmask = (lambda x: [i for i in xrange(64) if ((1 << i) & x)])
    bitmask = _psutil_linux.get_process_cpu_affinity(self.pid)
    return from_bitmask(bitmask)

dataset/ETHPy150Open packages/psutil/psutil/_pslinux.py Process.get_process_cpu_affinity/original