(self, index: int, line: str, frame_lineno: int, frame_index: int)
| 186 | raise exc |
| 187 | |
| 188 | def format_line(self, index: int, line: str, frame_lineno: int, frame_index: int) -> str: |
| 189 | values = { |
| 190 | # HTML escape - line could contain < or > |
| 191 | "line": html.escape(line).replace(" ", " "), |
| 192 | "lineno": (frame_lineno - frame_index) + index, |
| 193 | } |
| 194 | |
| 195 | if index != frame_index: |
| 196 | return LINE.format(**values) |
| 197 | return CENTER_LINE.format(**values) |
| 198 | |
| 199 | def generate_frame_html(self, frame: inspect.FrameInfo, is_collapsed: bool) -> str: |
| 200 | code_context = "".join( |
no test coverage detected