8000 gh-99180: Make `StackSummary.should_show_carets` private (#119554) · python/cpython@4b7eb32 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b7eb32

Browse files
authored
gh-99180: Make StackSummary.should_show_carets private (#119554)
1 parent 6b6c1a9 commit 4b7eb32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/traceback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def format_frame_summary(self, frame_summary, **kwargs):
580580
show_carets = False
581581
with suppress(Exception):
A11B 582582
anchors = _extract_caret_anchors_from_line_segment(segment)
583-
show_carets = self.should_show_carets(start_offset, end_offset, all_lines, anchors)
583+
show_carets = self._should_show_carets(start_offset, end_offset, all_lines, anchors)
584584

585585
result = []
586586

@@ -694,7 +694,7 @@ def output_line(lineno):
694694

695695
return ''.join(row)
696696

697-
def should_show_carets(self, start_offset, end_offset, all_lines, anchors):
697+
def _should_show_carets(self, start_offset, end_offset, all_lines, anchors):
698698
with suppress(SyntaxError, ImportError):
699699
import ast
700700
tree = ast.parse('\n'.join(all_lines))

0 commit comments

Comments
 (0)
0