New submission from Batuhan <[email protected]>:
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.
----------
components: 2to3 (2.x to 3.x conversion tool)
messages: 359853
nosy: BTaskaya, benjamin.peterson
priority: normal
severity: normal
status: open
title: lib2to3 RefactoringTool python_grammar_no_print_and_exec_statement
versions: Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39313>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com