Plugin manager returned wrong data types when no plugins/hooks where found

This commit is contained in:
Gina Häußge committed 2014-11-10 12:58:15 +01:00
1 parent 8741053dfc
commit 3c53394f4b
1 file changed
+2 -2
+2 -2
View File
@@ -235,7 +235,7 @@ class PluginManager(object):
def get_hooks(self, hook):
if not hook in self.plugin_hooks:
return []
return dict()
return {hook[0]: hook[1] for hook in self.plugin_hooks[hook]}
def get_implementations(self, *types):
@@ -249,7 +249,7 @@ class PluginManager(object):
result = result.intersection(implementations)
if result is None:
return set()
return dict()
return {impl[0]: impl[1] for impl in result}
def get_helpers(self, name, *helpers):