]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Use sorted() in possible view instead of .sort() 21/head
authorDaniel Neuhäuser <dasdasich@gmail.com>
Sat, 6 Jul 2013 15:20:02 +0000 (17:20 +0200)
committerDaniel Neuhäuser <dasdasich@gmail.com>
Sat, 6 Jul 2013 15:20:02 +0000 (17:20 +0200)
babel/messages/frontend.py

index 55acb95b7bbc5f6031ba459806ba9d6da07dec43..377851131cb8cb56d211158f9228c775bb563e11 100755 (executable)
@@ -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))