human
Solve the following python programming problem given the following code:
def replace_blocks_in_extends(self, extends_text, blocks) : 
    def replace(match) : 
        name = match.group ('name') 
        old_code = match.group ('code') 
        code = (blocks.get (name) or old_code) 
        return self.re_block_super.sub (old_code, code) 
return self.re_block.sub (replace, replace) 

    
    

    Fix the buggy line: return self.re_block.sub (replace, replace)
assistant
#Here is Python program to fix the buggy line: return self.

return self.re_block.sub (replace, extends_text)