small optimizations and cleanups by Moritz Venn
[enigma2.git] / lib / python / Components / PluginComponent.py
index 6e357cd0431aa3367f10ad4a71644625b7e37ab4..fff5c47575011e35b119b17ee2c59f9e7add53e8 100644 (file)
@@ -96,9 +96,9 @@ class PluginComponent:
                res = [ ]
 
                for x in where:
-                       for p in self.plugins.get(x, [ ]):
-                               res.append(p)
-               return res
+                       res.extend(self.plugins.get(x, [ ]))
+
+               return  res
 
        def getPluginsForMenu(self, menuid):
                res = [ ]