From c7cadfc8b46d1f6db38fac73624393873cae2ac7 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 12 Feb 2009 22:18:50 +0100 Subject: fix "schwerwiegender fehler" ;) --- lib/python/Components/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/python/Components') 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 -- cgit v1.2.3