diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2024-05-25 17:08:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-25 17:08:32 (GMT) |
commit | 4b7eb321bc43e41371df86fce47bd999ee51a793 (patch) | |
tree | 3ca4716e00131549ada538b506c866c8a884888c /Lib/traceback.py | |
parent | 6b6c1a904f6d6237a05057727360fe4b80e98d4c (diff) | |
download | cpython-4b7eb321bc43e41371df86fce47bd999ee51a793.zip cpython-4b7eb321bc43e41371df86fce47bd999ee51a793.tar.gz cpython-4b7eb321bc43e41371df86fce47bd999ee51a793.tar.bz2 |
gh-99180: Make `StackSummary.should_show_carets` private (#119554)
Diffstat (limited to 'Lib/traceback.py')
-rw-r--r-- | Lib/traceback.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py index 280d92d..6ee1a50 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py @@ -580,7 +580,7 @@ class StackSummary(list): show_carets = False with suppress(Exception): anchors = _extract_caret_anchors_from_line_segment(segment) - 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) result = [] @@ -694,7 +694,7 @@ class StackSummary(list): return ''.join(row) - def should_show_carets(self, start_offset, end_offset, all_lines, anchors): + def _should_show_carets(self, start_offset, end_offset, all_lines, anchors): with suppress(SyntaxError, ImportError): import ast tree = ast.parse('\n'.join(all_lines)) |