git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.opendreambox.org/git/acidburn/enigma2-master
[enigma2.git]
/
lib
/
python
/
Components
/
config.py
diff --git
a/lib/python/Components/config.py
b/lib/python/Components/config.py
index c999f2aaeb9c13718de7aa35dbb14d19fd0abf32..a813d3cadda77a8b5d9167a4d88f750248017658 100755
(executable)
--- a/
lib/python/Components/config.py
+++ b/
lib/python/Components/config.py
@@
-1426,8
+1426,8
@@
class ConfigSubList(list, object):
def getSavedValue(self):
res = { }
def getSavedValue(self):
res = { }
- for i
in range(len(self)
):
- sv =
self[i]
.saved_value
+ for i
, val in enumerate(self
):
+ sv =
val
.saved_value
if sv is not None:
res[str(i)] = sv
return res
if sv is not None:
res[str(i)] = sv
return res
@@
-1448,7
+1448,7
@@
class ConfigSubList(list, object):
item.load()
def dict(self):
item.load()
def dict(self):
- return dict([(str(index), value) for index, value in
self.enumerate(
)])
+ return dict([(str(index), value) for index, value in
enumerate(self
)])
# same as ConfigSubList, just as a dictionary.
# care must be taken that the 'key' has a proper
# same as ConfigSubList, just as a dictionary.
# care must be taken that the 'key' has a proper