summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/distutils/dist.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py
index 974ee5163b..631df48cd0 100644
--- a/Lib/distutils/dist.py
+++ b/Lib/distutils/dist.py
@@ -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)