summaryrefslogtreecommitdiffstats
path: root/Demo/pdist/cmdfw.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/pdist/cmdfw.py')
-rwxr-xr-xDemo/pdist/cmdfw.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Demo/pdist/cmdfw.py b/Demo/pdist/cmdfw.py
index 7bcb461..ec854b1 100755
--- a/Demo/pdist/cmdfw.py
+++ b/Demo/pdist/cmdfw.py
@@ -104,9 +104,7 @@ class CommandFrameWork:
c = c.__bases__[0]
if docstrings:
print("where subcommand can be:")
- names = list(docstrings.keys())
- names.sort()
- for name in names:
+ for name in sorted(docstrings.keys()):
print(docstrings[name])
if self.PostUsageMessage:
print(self.PostUsageMessage)