def _get_page_title(self, page):
fname = os.path.join(SOURCE_PATH, '<STR_LIT>'.format(page))<EOL>option_parser = docutils.frontend.OptionParser(<EOL>components=(docutils.parsers.rst.Parser,))<EOL>doc = docutils.utils.new_document(<EOL>'<STR_LIT>',<EOL>option_parser.get_default_values())<EOL>with open(fname) as f:<EOL><INDENT>data = f.read()<EOL><DEDENT>parser = docutils.parsers.rst.Parser()<EOL>with open(os.devnull, '<STR_LIT:a>') as f:<EOL><INDENT>doc.reporter.stream = f<EOL>parser.parse(data, doc)<EOL><DEDENT>section = next(node for node in doc.children<EOL>if isinstance(node, docutils.nodes.section))<EOL>title = next(node for node in section.children<EOL>if isinstance(node, docutils.nodes.title))<EOL>return title.astext()<EOL>
Open the rst file `page` and extract its title.