diff --git a/eos/db/util.py b/eos/db/util.py index 47a950c80..fe7080123 100644 --- a/eos/db/util.py +++ b/eos/db/util.py @@ -32,7 +32,7 @@ replace = {"attributes": "_Item__attributes", "projectedFits": "_Fit__projectedFits"} def processEager(eager): - if eager == None: + if eager is None: return tuple() else: l = [] diff --git a/eos/saveddata/drone.py b/eos/saveddata/drone.py index 750d0bf8e..9a329e9f2 100644 --- a/eos/saveddata/drone.py +++ b/eos/saveddata/drone.py @@ -117,7 +117,7 @@ class Drone(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut): return self.damageStats() def damageStats(self, targetResists = None): - if self.__dps == None: + if self.__dps is None: self.__volley = 0 self.__dps = 0 if self.dealsDamage is True and self.amountActive > 0: @@ -140,7 +140,7 @@ class Drone(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut): @property def miningStats(self): - if self.__miningyield == None: + if self.__miningyield is None: if self.mines is True and self.amountActive > 0: attr = "duration" getter = self.getModifiedItemAttr diff --git a/eos/saveddata/module.py b/eos/saveddata/module.py index 76680a2bb..be1aed929 100644 --- a/eos/saveddata/module.py +++ b/eos/saveddata/module.py @@ -311,7 +311,7 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut): self.__itemModifiedAttributes.clear() def damageStats(self, targetResists): - if self.__dps == None: + if self.__dps is None: self.__dps = 0 self.__volley = 0 @@ -332,7 +332,7 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut): @property def miningStats(self): - if self.__miningyield == None: + if self.__miningyield is None: if self.isEmpty: self.__miningyield = 0 else: