From 3cc01c8deb6aa80db50ba6c4bc6f79e0a7a9bbd9 Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 20 Oct 2010 20:18:14 +0200 Subject: [PATCH 1/1] lib/python/Components/config.py: revert previous change because of side effects --- lib/python/Components/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 08dd374..d7506e3 100755 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -179,7 +179,7 @@ class choicesList(object): # XXX: we might want a better name for this def __list__(self): if self.type == choicesList.LIST_TYPE_LIST: - ret = [not isinstance(x, tuple) and x or len(x) > 0 and x[0] or len(x) == 0 and x for x in self.choices] + ret = [not isinstance(x, tuple) and x or x[0] for x in self.choices] else: ret = self.choices.keys() return ret or [""] -- 2.7.4