]> granicus.if.org Git - python/commitdiff
Fix yet another stray 2.x-ism (maybe merged?).
authorGuido van Rossum <guido@python.org>
Mon, 15 Oct 2007 01:27:53 +0000 (01:27 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 15 Oct 2007 01:27:53 +0000 (01:27 +0000)
Lib/distutils/dist.py

index 974ee5163b7c718cdbd2eb1a1bc16f66248a3c13..631df48cd08855334afad2f7e00db37693df2c11 100644 (file)
@@ -280,8 +280,7 @@ Common commands: (see '--help-commands' for more)
         from pprint import pformat
 
         if commands is None:             # dump all command option dicts
-            commands = self.command_options.keys()
-            commands.sort()
+            commands = sorted(self.command_options.keys())
 
         if header is not None:
             print(indent + header)