Respect spaces between the modules during import

This commit is contained in:
DarkPhoenix
2018-08-25 17:42:19 +03:00
parent 44aed364b7
commit 93f1a18b37
2 changed files with 33 additions and 14 deletions

View File

@@ -113,6 +113,7 @@ class HandledList(list):
class HandledModuleList(HandledList):
def append(self, mod):
emptyPosition = float("Inf")
for i in range(len(self)):
@@ -130,6 +131,9 @@ class HandledModuleList(HandledList):
self.remove(mod)
return
self.appendIgnoreEmpty(mod)
def appendIgnoreEmpty(self, mod):
mod.position = len(self)
HandledList.append(self, mod)
if mod.isInvalid: