Comparison with None performed iwth equality operators

This commit is contained in:
Ebag333
2016-10-19 08:17:34 -07:00
parent 699276ca58
commit c73b446482
3 changed files with 5 additions and 5 deletions

View File

@@ -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 = []

View File

@@ -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

View File

@@ -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: