diff options
author | Nitzo <nitzo2001@yahoo.com> | 2016-01-02 00:37:43 +0100 |
---|---|---|
committer | Nitzo <nitzo2001@yahoo.com> | 2016-01-02 00:37:43 +0100 |
commit | 7ab16b360739c4754c954ceb54b226ab0a30c215 (patch) | |
tree | c7d522cfe574f43ebb862d51f3693cd974cde04f /module/plugins/hooks/UpdateManager.py | |
parent | [ExternalScripts] fix #2251 + much more (diff) | |
download | pyload-7ab16b360739c4754c954ceb54b226ab0a30c215.tar.xz |
"is" is evil
Diffstat (limited to 'module/plugins/hooks/UpdateManager.py')
-rw-r--r-- | module/plugins/hooks/UpdateManager.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py index 817990b0f..28a8ece39 100644 --- a/module/plugins/hooks/UpdateManager.py +++ b/module/plugins/hooks/UpdateManager.py @@ -15,7 +15,7 @@ from module.plugins.internal.misc import encode, exists, fsjoin class UpdateManager(Addon): __name__ = "UpdateManager" __type__ = "hook" - __version__ = "1.06" + __version__ = "1.08" __status__ = "testing" __config__ = [("activated" , "bool", "Activated" , True ), @@ -146,7 +146,7 @@ class UpdateManager(Addon): """ Check for updates """ - if self._update() is not 2 or not self.config.get('autorestart'): + if self._update() != 2 or not self.config.get('autorestart'): return if not self.pyload.api.statusDownloads(): @@ -345,7 +345,7 @@ class UpdateManager(Addon): py_filename = fsjoin(basedir, plugin_type, plugin_name + ".py") pyc_filename = py_filename + "c" - if plugin_type is "hook": + if plugin_type == "hook": try: self.manager.deactivateHook(plugin_name) |