diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2009-02-13 03:47:44 +0100 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2009-02-13 03:47:44 +0100 |
| commit | a4b8eb676ba549ebe8cf347f15888e51d8914789 (patch) | |
| tree | f88416c61e96ec26675c8817a6961a74207f0f7b /lib/python/Components/config.py | |
| parent | dce87891f204f8e1f7151c4a3ba00b9dd048e795 (diff) | |
| parent | c46312d7f5ce4113ece4c33595b7192eccadcb1d (diff) | |
| download | enigma2-a4b8eb676ba549ebe8cf347f15888e51d8914789.tar.gz enigma2-a4b8eb676ba549ebe8cf347f15888e51d8914789.zip | |
Merge branch 'master' of /home/tmbinc/enigma2-git into tmbinc/FixTimingBugs
Conflicts:
lib/python/Screens/InfoBarGenerics.py
Diffstat (limited to 'lib/python/Components/config.py')
| -rwxr-xr-x | lib/python/Components/config.py | 6 |
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 |
