code: def _treat_star_format(self,arg_format_list,args):
          
  
          num_stars = len([a for a in arg_format_list if a == "*"])
          if num_stars > 0:
  
              # Make sure the repeated format argument only occurs once, is last,
              # and that there is at least one format in addition to it.
              if num_stars == 1 and arg_format_list[-1] == "*" and len(arg_format_list) > 1:
  
                  # Trim * from end
                  arg_format_list = arg_format_list[:-1]
  
                  # If we need extra arguments...
                  if len(arg_format_list) < len(args):
                      f = arg_format_list[-1]
                      len_diff = len(args) - len(arg_format_list)
                      tmp = list(arg_format_list)
                      tmp.extend([f for i in range(len_diff)])
                      arg_format_list = "".join(tmp)
              else:
                  err = "'*' format must occur only once, be at end of string, and be preceded by at least one other format."
                  raise ValueError(err)
  
          return arg_format_list
docs: Deal with "*" format if specified.