Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Lib/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading