From 76e5181cade262b86610dcc851bcb4452196ccdc Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 12 Feb 2009 21:25:08 +0100 Subject: small speedups/cleanups by moritz venn --- lib/python/Components/PluginComponent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/python/Components/PluginComponent.py') 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 = [ ] -- cgit v1.2.3