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