Lines Matching defs:format
1 """Extract, format and print information about Python stack traces."""
26 for item in StackSummary.from_list(extracted_list).format():
41 return StackSummary.from_list(extracted_list).format()
59 return extract_tb(tb, limit=limit).format()
119 appropriate format, it prints the line where the syntax error
140 return list(te.format(chain=chain))
223 The return value has the same format as for extract_tb(). The
304 return "<FrameSummary file {filename}, line {lineno} in {name}>".format(
465 row.append(' File "{}", line {}, in {}\n'.format(
469 row.append(' {}\n'.format(stripped_line))
509 row.append(' {name} = {value}\n'.format(name=name, value=value))
513 def format(self):
643 still being able to fully print or format it.
845 yield ' File "{}", line {}\n'.format(
848 filename_suffix = ' ({})'.format(self.filename)
858 yield ' {}\n'.format(ltext)
872 yield ' {}{}'.format("".join(caretspace), ('^' * (end_colno - colno) + "\n"))
874 yield "{}: {}{}\n".format(stype, msg, filename_suffix)
876 def format(self, *, chain=True, _ctx=None):
918 yield from _ctx.emit(exc.stack.format())
925 # format exception group
934 yield from _ctx.emit(exc.stack.format())
959 yield from exc.exceptions[i].format(chain=chain, _ctx=_ctx)
978 """Print the result of self.format(chain=chain) to 'file'."""
981 for line in self.format(chain=chain):