From: Daniel Neuhäuser Date: Sat, 6 Jul 2013 15:20:02 +0000 (+0200) Subject: Use sorted() in possible view instead of .sort() X-Git-Tag: 1.0~88^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F21%2Fhead;p=thirdparty%2Fbabel.git Use sorted() in possible view instead of .sort() --- 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))