Create dictionary directly

This commit is contained in:
Ebag333
2016-10-19 08:18:47 -07:00
parent c73b446482
commit ccd8ee87f3

View File

@@ -808,10 +808,9 @@ class Fit(object):
def calculateSustainableTank(self, effective=True): def calculateSustainableTank(self, effective=True):
if self.__sustainableTank is None: if self.__sustainableTank is None:
if self.capStable: if self.capStable:
sustainable = {} sustainable = {"armorRepair": self.extraAttributes["armorRepair"],
sustainable["armorRepair"] = self.extraAttributes["armorRepair"] "shieldRepair": self.extraAttributes["shieldRepair"],
sustainable["shieldRepair"] = self.extraAttributes["shieldRepair"] "hullRepair": self.extraAttributes["hullRepair"]}
sustainable["hullRepair"] = self.extraAttributes["hullRepair"]
else: else:
sustainable = {} sustainable = {}