We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
StackSummary.should_show_carets
1 parent 317cc3b commit 2404cd9Copy full SHA for 2404cd9
Lib/traceback.py
@@ -580,7 +580,7 @@ def format_frame_summary(self, frame_summary, **kwargs):
580
show_carets = False
581
with suppress(Exception):
582
anchors = _extract_caret_anchors_from_line_segment(segment)
583
- show_carets = self.should_show_carets(start_offset, end_offset, all_lines, anchors)
+ show_carets = self._should_show_carets(start_offset, end_offset, all_lines, anchors)
584
585
result = []
586
@@ -694,7 +694,7 @@ def output_line(lineno):
694
695
return ''.join(row)
696
697
- def should_show_carets(self, start_offset, end_offset, all_lines, anchors):
+ def _should_show_carets(self, start_offset, end_offset, all_lines, anchors):
698
with suppress(SyntaxError, ImportError):
699
import ast
700
tree = ast.parse('\n'.join(all_lines))
0 commit comments