Пример #1
0
 def print_topics(self, header, cmds, cmdlen, maxcol):
     """Hide functions by putting them in self.__hiden_methods"""
     if header is not None:
         Cmd.print_topics(self, header, cmds, cmdlen, maxcol)
Пример #2
0
 def print_topics(self, header, cmds, cmdlen, maxcol):
     '''Transform underscores to dashes when we print the command names.'''
     if isinstance(cmds, list):
         for i in range(len(cmds)):
             cmds[i] = cmds[i].replace('_', '-')
     Cmd.print_topics(self, header, cmds, cmdlen, maxcol)
Пример #3
0
 def print_topics(self, header, cmds, cmdlen, maxcol):
     if header is not None:
         Cmd.print_topics(self, header, cmds, cmdlen, maxcol)
Пример #4
0
 def print_topics(self, header, cmds, cmdlen, maxcol):
     nix = 'EOF', 'b', 'c', 's', 'r', 't'
     if header is not None:
         Cmd.print_topics(self, header,
                          [cmd for cmd in cmds if cmd not in nix], cmdlen,
                          maxcol)