mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fixed unresolved references when moving modules and functions with 'import ...' style enabled (PY-6590, PY-6592)
Currently we don't take this import style into account and always insert 'from ... import' statements for modules and functions.
This commit is contained in:
@@ -352,7 +352,7 @@ public class PyClassRefactoringUtil {
|
||||
if (newFile == file) {
|
||||
deleteImportElement = true;
|
||||
}
|
||||
else if (insertImport(importStatement, element, importElement.getAsName())) {
|
||||
else if (insertImport(importStatement, element, importElement.getAsName(), true)) {
|
||||
deleteImportElement = true;
|
||||
}
|
||||
if (deleteImportElement) {
|
||||
|
||||
Reference in New Issue
Block a user