aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/config.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2009-02-13 01:05:42 +0100
committerFelix Domke <tmbinc@elitedvb.net>2009-02-13 01:05:42 +0100
commitc46312d7f5ce4113ece4c33595b7192eccadcb1d (patch)
treee3319cfa0f7cf929f2c2d181f60bf80dc34a7361 /lib/python/Components/config.py
parentaed27e79c07f8f2463ccefed5ba5c3e1b4352052 (diff)
parentc7cadfc8b46d1f6db38fac73624393873cae2ac7 (diff)
downloadenigma2-c46312d7f5ce4113ece4c33595b7192eccadcb1d.tar.gz
enigma2-c46312d7f5ce4113ece4c33595b7192eccadcb1d.zip
Merge branch 'master' of git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/python/Components/config.py')
-rwxr-xr-xlib/python/Components/config.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index c999f2aa..a813d3ca 100755
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -1426,8 +1426,8 @@ class ConfigSubList(list, object):
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
@@ -1448,7 +1448,7 @@ class ConfigSubList(list, object):
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