human
Solve the following python programming problem given the following code:
@ contextmanager 
def _build_pig_cmd(self) : 
    opts = self.pig_options () 
    def line(k, v) : 
        return ('%s=%s%s' % (k, v, os.linesep)).encode ('utf-8') 
with tempfile.NamedTemporaryFile () as param_file, tempfile.NamedTemporaryFile () as prop_file : 
        if self.pig_parameters () : 
            items = six.iteritems (self.pig_parameters ()) 
            param_file.writelines ((line (k, v) for (k, v) in items)) 
            param_file.flush () 
            opts.append ('-param_file') 
            opts.append (param_file.name) 
if self.pig_properties () : 
            items = six.iteritems (self.pig_properties ()) 
            prop_file.writelines ((line (k, v) for (k, v) in items)) 
            prop_file.flush () 
            opts.append ('-propertyFile') 
            opts.append (prop_file.name) 
cmd = (([self.pig_command_path ()] + cmd) + ['-f', self.pig_script_path ()]) 
        logger.info (subprocess.list2cmdline (cmd)) 
        (yield cmd) 

    
    

    Fix the buggy line: cmd = (([self.pig_command_path ()] + cmd) + ['-f', self.pig_script_path ()])
assistant
#Here is Python program to fix the buggy line: cmd = (([self.

cmd = (([self.pig_command_path ()] + opts) + ['-f', self.pig_script_path ()])