Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c0e9e0a

Browse filesBrowse files
AlexWaygoodestyxx
authored andcommitted
pythongh-99180: Make StackSummary.should_show_carets private (python#119554)
1 parent eb6942f commit c0e9e0a
Copy full SHA for c0e9e0a

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎Lib/traceback.py

Copy file name to clipboardExpand all lines: Lib/traceback.py
+2-2Lines 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):
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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.