Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove TODO about highlighting to end
  • Loading branch information
ammaraskar committed Jul 4, 2021
commit 83f0260ac4b6fe4e005f961f4a529996a11c5202
4 changes: 0 additions & 4 deletions Python/traceback.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,10 +554,6 @@ tb_displayline(PyTracebackObject* tb, PyObject *f, PyObject *filename, int linen
if (start_col_byte_offset < 0 || end_col_byte_offset < 0) {
goto done;
}
if (end_col_byte_offset == -1) {
// TODO: highlight from start_offset to the end of line
goto done;
}
// Convert the utf-8 byte offset to the actual character offset so we
// print the right number of carets.
Py_ssize_t start_offset = _byte_offset_to_character_offset(source_line, start_col_byte_offset);
Expand Down