diff --git a/bumblebee/modules/nic.py b/bumblebee/modules/nic.py index 98b089c..ca47409 100644 --- a/bumblebee/modules/nic.py +++ b/bumblebee/modules/nic.py @@ -100,7 +100,7 @@ class Module(bumblebee.engine.Module): widget.set("visited", True) for widget in widgets: - if widget.get("visited") == False: + if widget.get("visited") is False: widgets.remove(widget) def get_ssid(self, intf): diff --git a/bumblebee/modules/pulseaudio.py b/bumblebee/modules/pulseaudio.py index 2312545..2a393a4 100644 --- a/bumblebee/modules/pulseaudio.py +++ b/bumblebee/modules/pulseaudio.py @@ -105,12 +105,12 @@ class Module(bumblebee.engine.Module): if "<"+device+">" in line: found = True continue - if found == False: + if found is False: continue for pattern in self._patterns: if not pattern["expr"] in line: continue - if pattern["callback"](line) == False and found == True: + if pattern["callback"](line) is False and found == True: return except Exception: self._failed = True diff --git a/bumblebee/modules/zpool.py b/bumblebee/modules/zpool.py index 9c43a67..701c1c1 100644 --- a/bumblebee/modules/zpool.py +++ b/bumblebee/modules/zpool.py @@ -150,7 +150,7 @@ class Module(bumblebee.engine.Module): band=bytefmt(nread))) for widget in widgets: - if widget.get("visited") == False: + if widget.get("visited") is False: widgets.remove(widget) @staticmethod