human
Solve the following python programming problem given the following code:
def nvcc_kernel(name, params, body) : 
    "
    Return the c code of a kernel function.

    Parameters
    ----------
    params
        The parameters to the function as one or more strings.
    body
        The [nested] list of statements for the body of the
        function. These will be separated by ';' characters.

    " 
    paramstr = ', '.join (bodystr) 
    def flatbody() : 
        for b in body : 
            if isinstance (b, (list, tuple)) : 
                for bb in b : 
                    (yield bb) 
else : 
                (yield b) 
bodystr = ';
'.join (flatbody ()) 
    return ('__global__ void %(name)s (%(paramstr)s)
    {
        %(bodystr)s;
    }
    ' % locals ()) 

    
    

    Fix the buggy line: paramstr = ', '.join (bodystr)
assistant
#Here is Python code to fix the buggy line: paramstr = ', '.

paramstr = ', '.join (params)