summaryrefslogtreecommitdiffstats
path: root/module/HookManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-08-07 15:45:17 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-08-07 15:45:17 +0200
commit921627014e243fb2dd9b4f9a9dfade26d1e11c12 (patch)
tree2fde2ac7ab11bbca41f2e065095232f46257ab0b /module/HookManager.py
parentfixes, closed #361 (diff)
downloadpyload-921627014e243fb2dd9b4f9a9dfade26d1e11c12.tar.xz
closed #375
Diffstat (limited to 'module/HookManager.py')
-rw-r--r--module/HookManager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/HookManager.py b/module/HookManager.py
index 464f5af99..1adc07117 100644
--- a/module/HookManager.py
+++ b/module/HookManager.py
@@ -264,14 +264,14 @@ class HookManager:
for name, plugin in self.pluginMap.iteritems():
if plugin.info:
#copy and convert so str
- info[name] = dict([(x, str(y) if type(y) != basestring else y) for x, y in plugin.info.iteritems()])
+ info[name] = dict([(x, str(y) if not isinstance(y, basestring) else y) for x, y in plugin.info.iteritems()])
return info
def getInfo(self, plugin):
info = {}
if plugin in self.pluginMap and self.pluginMap[plugin].info:
- info = dict([(x, str(y) if type(y) != basestring else y)
+ info = dict([(x, str(y) if not isinstance(y, basestring) else y)
for x, y in self.pluginMap[plugin].info.iteritems()])
return info