git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add latvian language
[enigma2.git]
/
lib
/
python
/
Components
/
PluginComponent.py
diff --git
a/lib/python/Components/PluginComponent.py
b/lib/python/Components/PluginComponent.py
index d72e2af36f1414c8ee4cc43c1ede6845c5644e6e..6e357cd0431aa3367f10ad4a71644625b7e37ab4 100644
(file)
--- 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
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:
plugins = [ plugins ]
for p in plugins:
@@
-91,7
+91,7
@@
class PluginComponent:
def getPlugins(self, where):
"""Get list of plugins in a specific category"""
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 = [ ]
where = [ where ]
res = [ ]