From 6f281bfa8fb9eccc5e623b67c39f5b9e478eeeb0 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 19 Jan 2009 21:02:12 +0100 Subject: [PATCH] allow non string choices in ConfigSelection --- lib/python/Components/config.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 1efb8a56..a7724f40 100755 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -183,9 +183,8 @@ class ConfigSelection(ConfigElement): default = self.choices[0] assert default in self.choices, "default must be in choice list, but " + repr(default) + " is not!" - for x in self.choices: - assert isinstance(x, str), "ConfigSelection choices must be strings" - +# for x in self.choices: +# assert isinstance(x, str), "ConfigSelection choices must be strings" self.default = default if self.value == None or not self.value in self.choices: -- 2.30.2