From 25b9a48b59e90c98be650f45fc4ad3cdac0e0676 Mon Sep 17 00:00:00 2001 From: Christophe Benz Date: Wed, 17 Nov 2010 12:33:26 +0100 Subject: [PATCH] add spaces to slashes for choices --- weboob/tools/application/repl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weboob/tools/application/repl.py b/weboob/tools/application/repl.py index d8577080..d2e13423 100644 --- a/weboob/tools/application/repl.py +++ b/weboob/tools/application/repl.py @@ -964,7 +964,8 @@ class ReplApplication(Cmd, BaseApplication): if isinstance(v, ValueBool): question = u'%s (%s/%s)' % (question, 'Y' if v.default else 'y', 'n' if v.default else 'N') elif v.choices: - question = u'%s (%s)' % (question, '/'.join([(s.upper() if s == v.default else s) for s in (v.choices.iterkeys())])) + question = u'%s (%s)' % (question, ' / '.join((s.upper() if s == v.default else s) + for s in (v.choices.iterkeys()))) elif default not in (None, '') and not v.masked: question = u'%s [%s]' % (question, v.default)