Message359853
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. | |
| Date | User | Action | Args | | 2020-01-12 15:15:27 | BTaskaya | set | recipients: + BTaskaya, benjamin.peterson | | 2020-01-12 15:15:27 | BTaskaya | set | messageid: <1578842127.44.0.653457423562.issue39313@roundup.psfhosted.org> | | 2020-01-12 15:15:27 | BTaskaya | link | issue39313 messages | | 2020-01-12 15:15:27 | BTaskaya | create | | |