baron icon indicating copy to clipboard operation
baron copied to clipboard

Mishandling of print function

Open shindavid opened this issue 4 years ago • 0 comments

The following code...

import redbaron
rb = redbaron.RedBaron('func = print if True else print')
print(rb.dumps())

...produces the following output:

func = printif True else print

Note that the space between the print and the if has been removed.

This bug does not occur if the the word print is replaced with foo.

shindavid avatar Jan 14 '22 23:01 shindavid