MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / print_topics

Method print_topics

tools/python-3.11.9-amd64/Lib/cmd.py:338–344  ·  view source on GitHub ↗
(self, header, cmds, cmdlen, maxcol)

Source from the content-addressed store, hash-verified

336 self.print_topics(self.undoc_header, cmds_undoc, 15,80)
337
338 def print_topics(self, header, cmds, cmdlen, maxcol):
339 if cmds:
340 self.stdout.write("%s\n"%str(header))
341 if self.ruler:
342 self.stdout.write("%s\n"%str(self.ruler * len(header)))
343 self.columnize(cmds, maxcol-1)
344 self.stdout.write("\n")
345
346 def columnize(self, list, displaywidth=80):
347 """Display a list of strings as a compact set of columns.

Callers 1

do_helpMethod · 0.95

Calls 3

columnizeMethod · 0.95
strFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected