From ddbade50b0f18544ba0e378d0b2937788cdd269c Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Fri, 4 Apr 2008 21:49:42 +0000 Subject: [PATCH] fix tabs --- lib/python/Components/UsageConfig.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py index ad95b3c..cfdb458 100644 --- a/lib/python/Components/UsageConfig.py +++ b/lib/python/Components/UsageConfig.py @@ -109,14 +109,13 @@ def InitUsageConfig(): def updateChoices(sel, choices): if choices: - defval = None - val = int(sel.value) + defval = None + val = int(sel.value) if not val in choices: - tmp = choices+[] - tmp.reverse() - for x in tmp: - if x < val: - defval = str(x) - break + tmp = choices+[] + tmp.reverse() + for x in tmp: + if x < val: + defval = str(x) + break sel.setChoices(map(str, choices), defval) - -- 2.7.4