Use 'is False' instead of '== False'

This commit is contained in:
Frederic Junod 2018-06-04 14:53:01 +02:00
parent f46671a85f
commit 62f79beb90
3 changed files with 4 additions and 4 deletions

View file

@ -100,7 +100,7 @@ class Module(bumblebee.engine.Module):
widget.set("visited", True) widget.set("visited", True)
for widget in widgets: for widget in widgets:
if widget.get("visited") == False: if widget.get("visited") is False:
widgets.remove(widget) widgets.remove(widget)
def get_ssid(self, intf): def get_ssid(self, intf):

View file

@ -105,12 +105,12 @@ class Module(bumblebee.engine.Module):
if "<"+device+">" in line: if "<"+device+">" in line:
found = True found = True
continue continue
if found == False: if found is False:
continue continue
for pattern in self._patterns: for pattern in self._patterns:
if not pattern["expr"] in line: if not pattern["expr"] in line:
continue continue
if pattern["callback"](line) == False and found == True: if pattern["callback"](line) is False and found == True:
return return
except Exception: except Exception:
self._failed = True self._failed = True

View file

@ -150,7 +150,7 @@ class Module(bumblebee.engine.Module):
band=bytefmt(nread))) band=bytefmt(nread)))
for widget in widgets: for widget in widgets:
if widget.get("visited") == False: if widget.get("visited") is False:
widgets.remove(widget) widgets.remove(widget)
@staticmethod @staticmethod