Condense code a bit more

This commit is contained in:
DarkPhoenix
2018-08-24 10:01:31 +03:00
parent 0a2fa62e21
commit 83222489c4

View File

@@ -1079,8 +1079,7 @@ class Port(object):
modsBySlotType = {}
sFit = svcFit.getInstance()
for module in fit.modules:
slot = module.slot
modsBySlotType.setdefault(slot, []).append(module)
modsBySlotType.setdefault(module.slot, []).append(module)
modSection = []
offineSuffix = ' /OFFLINE'
mutants = {} # Format: {reference number: module}