Python source code line normalizing formatter

39 Views Asked by At

There are many formatters which will do pep8/flake or alternative styles (e.g. black). But are there tools, which do reverse? Given a python code, convert it to have one stanza per line? No multiline arguments for function call, etc?

I need it to to make few automatic changes, and multiline arguments just break my sed (I want to replace debug/info stanza with 'pass' in a large project to see if it speedup things).

Or, may be, is there a way to configure existing fromatters to do so?

0

There are 0 best solutions below