aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/PluginComponent.py
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-02-12 21:25:08 +0100
committerghost <andreas.monzner@multimedia-labs.de>2009-02-12 21:25:08 +0100
commit76e5181cade262b86610dcc851bcb4452196ccdc (patch)
tree25831b32e1543b893a033729e472dd679dffdc64 /lib/python/Components/PluginComponent.py
parent00248c1a8794e64b8ce82d9cdefdd3ddae98dffd (diff)
downloadenigma2-76e5181cade262b86610dcc851bcb4452196ccdc.tar.gz
enigma2-76e5181cade262b86610dcc851bcb4452196ccdc.zip
small speedups/cleanups by moritz venn
Diffstat (limited to 'lib/python/Components/PluginComponent.py')
-rw-r--r--lib/python/Components/PluginComponent.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py
index d72e2af3..6e357cd0 100644
--- a/lib/python/Components/PluginComponent.py
+++ b/lib/python/Components/PluginComponent.py
@@ -63,7 +63,7 @@ class PluginComponent:
continue
# allow single entry not to be a list
- if type(plugins) is not list:
+ if not isinstance(plugins, list):
plugins = [ plugins ]
for p in plugins:
@@ -91,7 +91,7 @@ class PluginComponent:
def getPlugins(self, where):
"""Get list of plugins in a specific category"""
- if type(where) is not list:
+ if not isinstance(where, list):
where = [ where ]
res = [ ]