summaryrefslogtreecommitdiffstats
path: root/module/PluginThread.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-14 20:59:01 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-14 20:59:01 +0200
commit853d29a0f12cdcb6c406b829a57439c7ea9b570d (patch)
tree047d94a11037617521c7a50130a6ead538c5daf7 /module/PluginThread.py
parentfixed config on webif + show description (diff)
downloadpyload-853d29a0f12cdcb6c406b829a57439c7ea9b570d.tar.xz
has_key refractored, package name generator by Geek
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r--module/PluginThread.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/PluginThread.py b/module/PluginThread.py
index ff5014f63..e0e3b17c9 100644
--- a/module/PluginThread.py
+++ b/module/PluginThread.py
@@ -94,7 +94,7 @@ class PluginThread(Thread):
dump += "<ERROR WHILE PRINTING VALUE> "+ str(e) +"\n"
- if self.m.core.config.plugin.has_key(pyfile.pluginname):
+ if pyfile.pluginname in self.m.core.config.plugin:
dump += "\n\nCONFIG: \n\n"
dump += pformat(self.m.core.config.plugin[pyfile.pluginname]) +"\n"
@@ -436,7 +436,7 @@ class InfoThread(PluginThread):
plugins = {}
for url, plugin in self.data:
- if plugins.has_key(plugin):
+ if plugin in plugins:
plugins[plugin].append(url)
else:
plugins[plugin] = [url]