Fixed flake8 complaints.

This commit is contained in:
Tron
2018-10-15 05:43:56 -05:00
parent 929b2dfb38
commit 05ce8fbf1c
2 changed files with 2 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ class BitmapLoader(object):
bmp: wx.Bitmap = img.ConvertToBitmap()
if scale > 1:
bmp.SetSize((int(bmp.GetWidth()/scale), int(bmp.GetHeight()/scale)))
bmp.SetSize((bmp.GetWidth() // scale, bmp.GetHeight() // scale))
return bmp
@classmethod

View File

@@ -83,7 +83,6 @@ class EfsPort():
@staticmethod
def getPropData(fit, sFit):
fitID = fit.ID
propMods = filter(lambda mod: mod.item and mod.item.group.name == "Propulsion Module", fit.modules)
activePropWBloomFilter = lambda mod: mod.state > 0 and "signatureRadiusBonus" in mod.item.attributes
propWithBloom = next(filter(activePropWBloomFilter, propMods), None)
@@ -341,7 +340,7 @@ class EfsPort():
# This also covers non-bomb weapons with dps values and no hardpoints, most notably targeted doomsdays.
typeing = "SmartBomb"
# Targeted DDs are the only non drone/fighter weapon without an explict max range
if stats.item.group.name == 'Super Weapon' and stats.maxRange == None:
if stats.item.group.name == 'Super Weapon' and stats.maxRange is None:
maxRange = 300000
else:
maxRange = stats.maxRange