diff options
author | 2016-01-10 01:12:35 +0100 | |
---|---|---|
committer | 2016-01-10 01:12:35 +0100 | |
commit | 275ecd47f14ebee8309de1e1f13d090ca50c38fe (patch) | |
tree | f9c22e6fc16f376fcc6f34df9f86af3a300fbabe /module/plugins/hooks/UpdateManager.py | |
parent | [ExternalScripts] Update (diff) | |
download | pyload-275ecd47f14ebee8309de1e1f13d090ca50c38fe.tar.xz |
"is" is evil (2)
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 28a8ece39..d8635e9c6 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.08" + __version__ = "1.09" __status__ = "testing" __config__ = [("activated" , "bool", "Activated" , True ), @@ -252,8 +252,8 @@ class UpdateManager(Addon): if blacklist: #@NOTE: Protect UpdateManager from self-removing - blacklisted_plugins = [(plugin['type'], plugin['name']) for plugin in blacklist \ - if plugin['name'] is not self.classname and plugin['type'] is not self.__type__] + blacklisted_plugins = [(plugin['type'], plugin['name']) for plugin in blacklist + if plugin['name'] != self.classname and plugin['type'] != self.__type__] c = 1 l = len(blacklisted_plugins) |