summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/AntiStandby.py
diff options
context:
space:
mode:
authorGravatar Nitzo <nitzo2001@yahoo.com> 2016-01-02 00:37:43 +0100
committerGravatar Nitzo <nitzo2001@yahoo.com> 2016-01-02 00:37:43 +0100
commit7ab16b360739c4754c954ceb54b226ab0a30c215 (patch)
treec7d522cfe574f43ebb862d51f3693cd974cde04f /module/plugins/hooks/AntiStandby.py
parent[ExternalScripts] fix #2251 + much more (diff)
downloadpyload-7ab16b360739c4754c954ceb54b226ab0a30c215.tar.xz
"is" is evil
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":