summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/AntiStandby.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/AntiStandby.py')
-rw-r--r--module/plugins/hooks/AntiStandby.py6
1 files changed, 3 insertions, 3 deletions
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":