diff --git a/Lib/cmd.py b/Lib/cmd.py index 51495fb32160b0..0952ba6f6bbb11 100644 --- a/Lib/cmd.py +++ b/Lib/cmd.py @@ -349,6 +349,10 @@ def do_help(self, arg): self.print_topics(self.undoc_header, cmds_undoc, 15,80) def print_topics(self, header, cmds, cmdlen, maxcol): + """Columnize an iterable of strings; add a header; write to stdout. + + Used for each section of `.do_help`. + """ if cmds: self.stdout.write("%s\n"%str(header)) if self.ruler: