def run(self): from sphinx.pycode.pgen2.driver import compile_grammar compile_grammar('sphinx/pycode/Grammar-py2.txt') print('sphinx/pycode/Grammar-py2.txt ... done') compile_grammar('sphinx/pycode/Grammar-py3.txt') print('sphinx/pycode/Grammar-py3.txt ... done')