add latvian language
[enigma2.git] / lib / python / Components / PluginComponent.py
index d72e2af36f1414c8ee4cc43c1ede6845c5644e6e..6e357cd0431aa3367f10ad4a71644625b7e37ab4 100644 (file)
@@ -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 = [ ]