original_docstring:  @override logging.Formatter.format
              generate a consistent format
docstring: @override logging.Formatter.format
  generate a consistent format
docstring_tokens: @override logging . Formatter . format generate a consistent format
code: def format(self, record):
          ''' @override logging.Formatter.format
              generate a consistent format'''
          msg = Formatter.format(self, record)
          pos1 = self._fmt.find(self.default_level_fmt)  # return -1 if not find
          pos2 = pos1 + len(self.default_level_fmt)
          if pos1 > -1:
              last_ch = self.default_level_fmt[-1]
              repeat = self._get_repeat_times(msg, last_ch, 0, pos2)
              pos1 = self._get_index(msg, last_ch, repeat)
              return '%-10s%s' % (msg[:pos1], msg[pos1 + 1:])
          else:
              return msg
code_tokens: def format ( self , record ) : msg = Formatter . format ( self , record ) pos1 = self . _fmt . find ( self . default_level_fmt ) pos2 = pos1 + len ( self . default_level_fmt ) if pos1 > - 1 : last_ch = self . default_level_fmt [ - 1 ] repeat = self . _get_repeat_times ( msg , last_ch , 0 , pos2 ) pos1 = self . _get_index ( msg , last_ch , repeat ) return '%-10s%s' % ( msg [ : pos1 ] , msg [ pos1 + 1 : ] ) else : return msg
short_docstring: @override logging.Formatter.format
  generate a consistent format
short_docstring_tokens: @override logging . Formatter . format generate a consistent format
comment: ''' @override logging.Formatter.format
              generate a consistent format'''$SEP$# return -1 if not find