This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author BTaskaya
Recipients BTaskaya, benjamin.peterson
Date 2020-01-12.15:15:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578842127.44.0.653457423562.issue39313@roundup.psfhosted.org>
In-reply-to
Content
issue 23896 introduced a grammar without print and exec statements (they both are functions now) but both the lib2to3 cli script and RefactoringTool lacks of that functionality (which is pretty useful for outside users of lib2to3 like formatters)

(RefactoringTool)
        if self.options["print_function"]:
            self.grammar = pygram.python_grammar_no_print_statement
        else:
            self.grammar = pygram.python_grammar


It should be supported here and on the command line script.
History
Date User Action Args
2020-01-12 15:15:27BTaskayasetrecipients: + BTaskaya, benjamin.peterson
2020-01-12 15:15:27BTaskayasetmessageid: <1578842127.44.0.653457423562.issue39313@roundup.psfhosted.org>
2020-01-12 15:15:27BTaskayalinkissue39313 messages
2020-01-12 15:15:27BTaskayacreate