parameters: (lnum, index, lines, Colors, lvals, _line_format)
return_statement: return res
docstring: Format tracebacks lines with pointing arrow, leading numbers...
  
      Parameters
      ==========
  
      lnum: int
      index: int
      lines: list[string]
      Colors:
          ColorScheme used.
      lvals: bytes
          Values of local variables, already colored, to inject just after the error line.
      _line_format: f (str) -> (str, bool)
          return (colorized version of str, failure to do so)
docstring_summary: Format tracebacks lines with pointing arrow, leading numbers...
docstring_tokens: Format tracebacks lines with pointing arrow leading numbers ...
function: def _format_traceback_lines(lnum, index, lines, Colors, lvals, _line_format):
      """
      Format tracebacks lines with pointing arrow, leading numbers...
  
      Parameters
      ==========
  
      lnum: int
      index: int
      lines: list[string]
      Colors:
          ColorScheme used.
      lvals: bytes
          Values of local variables, already colored, to inject just after the error line.
      _line_format: f (str) -> (str, bool)
          return (colorized version of str, failure to do so)
      """
      numbers_width = INDENT_SIZE - 1
      res = []
  
      for i,line in enumerate(lines, lnum-index):
          line = py3compat.cast_unicode(line)
  
          new_line, err = _line_format(line, 'str')
          if not err:
              line = new_line
  
          if i == lnum:
              # This is the line with the error
              pad = numbers_width - len(str(i))
              num = '%s%s' % (debugger.make_arrow(pad), str(lnum))
              line = '%s%s%s %s%s' % (Colors.linenoEm, num,
                                      Colors.line, line, Colors.Normal)
          else:
              num = '%*s' % (numbers_width, i)
              line = '%s%s%s %s' % (Colors.lineno, num,
                                    Colors.Normal, line)
  
          res.append(line)
          if lvals and i == lnum:
              res.append(lvals + '\n')
      return res
function_tokens: def _format_traceback_lines ( lnum , index , lines , Colors , lvals , _line_format ) : numbers_width = INDENT_SIZE - 1 res = [ ] for i , line in enumerate ( lines , lnum - index ) : line = py3compat . cast_unicode ( line ) new_line , err = _line_format ( line , 'str' ) if not err : line = new_line if i == lnum : # This is the line with the error pad = numbers_width - len ( str ( i ) ) num = '%s%s' % ( debugger . make_arrow ( pad ) , str ( lnum ) ) line = '%s%s%s %s%s' % ( Colors . linenoEm , num , Colors . line , line , Colors . Normal ) else : num = '%*s' % ( numbers_width , i ) line = '%s%s%s %s' % ( Colors . lineno , num , Colors . Normal , line ) res . append ( line ) if lvals and i == lnum : res . append ( lvals + '\n' ) return res