Bowler icon indicating copy to clipboard operation
Bowler copied to clipboard

Renamed imported object if it has the same name as module

Open orsinium opened this issue 5 years ago • 0 comments

Input file:

from commonmark.main import commonmark

Code:

bowler.Query('__init__.py').select_module('commonmark').rename('testme').execute(write=True, silent=True) 

Output:

from testme.main import testme

orsinium avatar Jun 26 '19 16:06 orsinium