parameters: (self)
return_statement: return commands
docstring: Determine the sub-commands that are relevant in the current
          distribution (ie., that need to be run).  This is based on the
          'sub_commands' class attribute: each tuple in that list may include
          a method that we call to determine if the subcommand needs to be
          run for the current distribution.  Return a list of command names.
docstring_summary: Determine the sub-commands that are relevant in the current
          distribution (ie., that need to be run).  This is based on the
          'sub_commands' class attribute: each tuple in that list may include
          a method that we call to determine if the subcommand needs to be
          run for the current distribution.  Return a list of command names.
docstring_tokens: Determine the sub - commands that are relevant in the current distribution ( ie . that need to be run ) . This is based on the sub_commands class attribute : each tuple in that list may include a method that we call to determine if the subcommand needs to be run for the current distribution . Return a list of command names .
function: def get_sub_commands(self):
          """Determine the sub-commands that are relevant in the current
          distribution (ie., that need to be run).  This is based on the
          'sub_commands' class attribute: each tuple in that list may include
          a method that we call to determine if the subcommand needs to be
          run for the current distribution.  Return a list of command names.
          """
          commands = []
          for (cmd_name, method) in self.sub_commands:
              if method is None or method(self):
                  commands.append(cmd_name)
          return commands
function_tokens: def get_sub_commands ( self ) : commands = [ ] for ( cmd_name , method ) in self . sub_commands : if method is None or method ( self ) : commands . append ( cmd_name ) return commands