From 7ab16b360739c4754c954ceb54b226ab0a30c215 Mon Sep 17 00:00:00 2001 From: Nitzo Date: Sat, 2 Jan 2016 01:37:43 +0200 Subject: "is" is evil --- module/plugins/hooks/AntiStandby.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/hooks/AntiStandby.py') diff --git a/module/plugins/hooks/AntiStandby.py b/module/plugins/hooks/AntiStandby.py index 2159e5937..05f33b397 100644 --- a/module/plugins/hooks/AntiStandby.py +++ b/module/plugins/hooks/AntiStandby.py @@ -27,7 +27,7 @@ class Kernel32(object): class AntiStandby(Addon): __name__ = "AntiStandby" __type__ = "hook" - __version__ = "0.14" + __version__ = "0.15" __status__ = "testing" __config__ = [("activated", "bool", "Activated" , True ), @@ -57,7 +57,7 @@ class AntiStandby(Addon): if hdd: self.periodical.start(self.config.get('interval'), threaded=True) - if os.name is "nt": + if os.name == "nt": self.win_standby(system, display) elif sys.platform == "darwin": @@ -70,7 +70,7 @@ class AntiStandby(Addon): def deactivate(self): self.remove(self.TMP_FILE, trash=False) - if os.name is "nt": + if os.name == "nt": self.win_standby(True) elif sys.platform == "darwin": -- cgit v1.2.3