mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
First of all, removed duplication and slightly simplified convoluted transformImportStatements() method. Also, extended existing test to include handling of comments when splitting "from" imports.
9 lines
112 B
Python
9 lines
112 B
Python
# line comment
|
|
from mod import (
|
|
foo, # inner comment
|
|
baz
|
|
)
|
|
from mod import bar
|
|
|
|
print(foo, bar, baz)
|