python-rope/ropevim

AutoImport imports if already imported

Closed this issue · 2 comments

erikw commented

:RopeAutoImport should not import the given name if it is already imported. Issuing this command many times on the same symbol will just append more imports

from X import Y
from X import Y
from X import Y
from X import Y
mcepl commented

ropevim does almost nothing here. It just calls the underlying libraries, in this case I believe https://github.com/python-rope/rope/blob/master/rope/contrib/autoimport.py , so I think you should file an issue at the rope issue tracker.

erikw commented

Thanks. Moved to here: python-rope/rope#194