def handle_extends(self, text):
        match = self.re_extends.match(text)
        if match:
            extra_text = self.re_extends.sub('', text, count=1)
            blocks = self.get_blocks(extra_text)
            path = os.path.join(self.base_dir, match.group('path'))
            with open(path, encoding='utf-8') as fp:
                return self.replace_blocks_in_extends(fp.read(), blocks)
        else:
            return None
Initialize a _PartialFile.
dataset/ETHPy150Open mozillazg/bustard/bustard/template.py/Template.handle_extends--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/_PartialFile.__init__