Fix yet another stray 2.x-ism (maybe merged?).
diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py
index 974ee51..631df48 100644
--- a/Lib/distutils/dist.py
+++ b/Lib/distutils/dist.py
@@ -280,8 +280,7 @@
         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)