From 5a8eaf4027c8a41cefb29a3ff12975d0296defe3 Mon Sep 17 00:00:00 2001 From: Egor Zvorykin Date: Mon, 18 Nov 2019 10:32:34 +0300 Subject: [PATCH] Fix py38 warning (#770) --- i3pystatus/core/modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3pystatus/core/modules.py b/i3pystatus/core/modules.py index 31dc377..358ff8b 100644 --- a/i3pystatus/core/modules.py +++ b/i3pystatus/core/modules.py @@ -153,7 +153,7 @@ class Module(SettingsBase): "Method callback", **kwargs) call_callback(cb, self, *args, **kwargs) elif hasattr(self, cb): - if cb is not "run": + if cb != "run": # CommandEndpoint already calls run() after every # callback to instantly update any changed state due # to the callback's actions.