Files
openide/python/testData/optimizeImports/orderNamesInsightFromImportDoesntAffectAlreadyOrderedImports.after.py
Mikhail Golubev a9ea4677bc PY-19292 PY-14176 Optimize Imports doesn't re-create unaffected import statements
For instance, "from" import statements where imported names are already
ordered. Otherwise even when all imports are well formed, the whole
import block will be inserted anew and reformatted.
2016-06-15 19:34:12 +03:00

7 lines
159 B
Python

# Optimize Imports should not re-create imports statements that are in order
from module1 import a, b, c
from module2 import A, B, C
print(A, B, C, a, b, c)