From 05ce8fbf1c41dfcad105ad8dc2f197d40c76340c Mon Sep 17 00:00:00 2001 From: Tron Date: Mon, 15 Oct 2018 05:43:56 -0500 Subject: [PATCH] Fixed flake8 complaints. --- gui/bitmap_loader.py | 2 +- service/port/efs.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gui/bitmap_loader.py b/gui/bitmap_loader.py index 6319d5c0c..7a8d41a46 100644 --- a/gui/bitmap_loader.py +++ b/gui/bitmap_loader.py @@ -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 diff --git a/service/port/efs.py b/service/port/efs.py index ef224e850..b572e5376 100755 --- a/service/port/efs.py +++ b/service/port/efs.py @@ -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