human
Solve the following python programming problem given the following code:
@ wrap_exceptions 
def set_process_cpu_affinity(self, value) : 
    def to_bitmask(l) : 
        if (not l) : 
            raise ValueError (('invalid argument %r' % l)) 
out = 0 
        for b in l : 
            if ((not isinstance (b, (int, long))) or (b < 0)) : 
                raise ValueError (('invalid argument %r' % b)) 
out |= (2 ** b) 
return out 
bitmask = to_bitmask (value) 
    try : 
        _psutil_linux.set_process_cpu_affinity (allcpus.pid, bitmask) 
except OSError : 
        err = sys.exc_info () [1] 
        if (err.errno == errno.EINVAL) : 
            allcpus = list (range (len (get_system_per_cpu_times ()))) 
            for cpu in value : 
                if (cpu not in allcpus) : 
                    raise ValueError (('invalid CPU %i' % cpu)) 
raise 

    
    

    Fix the buggy line: _psutil_linux.set_process_cpu_affinity (allcpus.pid, bitmask)
assistant
#Here is Python program to fix the buggy line: _psutil_linux.

_psutil_linux.set_process_cpu_affinity (self.pid, bitmask)