We have a lot of files with ugly import statements like this:
from project.foo import a, b
from project.foo import c
from project.bar import d, e, f, g
Does there exist something that will change them all to one import per line?
from project.foo import a
from project.foo import b
from project.foo import c
from project.bar import d
from project.bar import e
from project.bar import f
from project.bar import g
Clarification: The reason for this is to maintain a consistent style, like Google's style guide for Python.
from foo import *tofrom foo import a, b.