See these commits; the problem is that it removes the whitespace (which includes comments) too. Should just be one new condition in remove_pointless_parens_around_call(); "if node contains comment node: return node without changes" which can be copied from remove_trailing_comma().
See these commits; the problem is that it removes the whitespace (which includes comments) too. Should just be one new condition in
remove_pointless_parens_around_call()
; "if node contains comment node: return node without changes" which can be copied fromremove_trailing_comma()
.