From 458c78c38be7975b8b6b749b430418a8c8dfffc3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Neuha=CC=88user?= Date: Sat, 6 Jul 2013 17:20:02 +0200 Subject: [PATCH] Use sorted() in possible view instead of .sort() --- babel/messages/frontend.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/babel/messages/frontend.py b/babel/messages/frontend.py index 55acb95b..37785113 100755 --- a/babel/messages/frontend.py +++ b/babel/messages/frontend.py @@ -705,8 +705,7 @@ class CommandLineInterface(object): print("commands:") longest = max([len(command) for command in self.commands]) format = " %%-%ds %%s" % max(8, longest + 1) - commands = self.commands.items() - commands.sort() + commands = sorted(self.commands.items()) for name, description in commands: print(format % (name, description)) -- 2.47.2