From ddda7f88e41cbcd8867ad2960491e22d5c6c1f61 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Fri, 22 Jul 2011 21:02:21 +0200 Subject: [PATCH] sort backends by name when querying user to select one --- weboob/tools/application/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/tools/application/console.py b/weboob/tools/application/console.py index 67f8d649..e16afcad 100644 --- a/weboob/tools/application/console.py +++ b/weboob/tools/application/console.py @@ -40,7 +40,7 @@ __all__ = ['ConsoleApplication', 'BackendNotGiven'] class BackendNotGiven(Exception): def __init__(self, id, backends): self.id = id - self.backends = backends + self.backends = sorted(backends) Exception.__init__(self, 'Please specify a backend to use for this argument (%s@backend_name). ' 'Availables: %s.' % (id, ', '.join(name for name, backend in backends)))