def format_subpages(self, page, subpages):
if not subpages:<EOL><INDENT>return None<EOL><DEDENT>try:<EOL><INDENT>template = self.get_template('<STR_LIT>')<EOL><DEDENT>except IOError:<EOL><INDENT>return None<EOL><DEDENT>ret = etree.XML(template.render({'<STR_LIT>': page,<EOL>'<STR_LIT>': subpages}))<EOL>assets = ret.xpath('<STR_LIT>')<EOL>for asset in assets:<EOL><INDENT>self.__lookup_asset(asset, self.extension.project, page)<EOL><DEDENT>return ret<EOL>
Banana banana