From: Andreas Monzner Date: Mon, 23 Oct 2006 14:54:46 +0000 (+0000) Subject: getConfigListEntry now supports more than two arguments X-Git-Tag: 2.6.0~2856 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/92456d9542585d58e011fa4f0b501de3ef9c1819 getConfigListEntry now supports more than two arguments --- diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 44acacdd..6c683bca 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -886,8 +886,9 @@ configfile = ConfigFile() configfile.load() -def getConfigListEntry(desc, config): - return (desc, config) +def getConfigListEntry(*args): + assert len(args) > 1, "getConfigListEntry needs a minimum of two arguments (descr, configElement)" + return args #def _(x): # return x