Comparison with None performed iwth equality operators
This commit is contained in:
@@ -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 = []
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user