Lines Matching refs:line
39 whose source text line is not None.
69 containing attributes filename, lineno, name, and line
71 trace. The line is a string with leading and trailing
119 appropriate format, it prints the line where the syntax error
120 occurred with a caret on the next line indicating the approximate
168 line = "%s\n" % etype
170 line = "%s: %s\n" % (etype, valuestr)
171 return line
226 line number, function name, text), and the entries are in order
251 - :attr:`lineno` The line within filename for the frame that was
255 - :attr:`line` The text from the linecache module for the
265 locals=None, line=None,
270 code line. Otherwise, the line will be looked up when first needed.
273 :param line: If provided, use this instead of looking up the line in
279 self._line = line
281 self.line
294 return (self.filename, self.lineno, self.name, self.line) == other
298 return (self.filename, self.lineno, self.name, self.line)[pos]
301 return iter([self.filename, self.lineno, self.name, self.line])
304 return "<FrameSummary file {filename}, line {lineno} in {name}>".format(
312 # Returns the line as-is from the source, without modifying whitespace.
313 self.line
317 def line(self):
326 """Walk a stack yielding the frame and line number for each frame.
339 """Walk a traceback yielding the frame and line number for each frame.
351 # end line and column information.
354 # Yield tb_lineno when co_positions does not have a line number to
423 # Must defer line lookups until we have called checkcache.
436 f.line
454 filename, lineno, name, line = frame
455 result.append(FrameSummary(filename, lineno, name, line=line))
465 row.append(' File "{}", line {}, in {}\n'.format(
467 if frame_summary.line:
468 stripped_line = frame_summary.line.strip()
472 frame_line_len = len(frame_summary.line.lstrip())
492 # show indicators if primary char doesn't span the frame line
521 For long sequences of the same frame and line, the first few
522 repetitions are shown, followed by a summary line stating the exact
540 f' [Previous line repeated {count} more '
555 f' [Previous line repeated {count} more '
632 yield textwrap.indent(text_gen, indent_str, lambda line: True)
635 yield textwrap.indent(text, indent_str, lambda line: True)
795 frame.line
845 yield ' File "{}", line {}\n'.format(
981 for line in self.format(chain=chain):
982 print(line, file=file, end="")