MCPcopy Index your code
hub / github.com/ipython/ipython / make_arrow

Method make_arrow

IPython/utils/PyColorize.py:75–85  ·  view source on GitHub ↗

generate the leading arrow in front of traceback or debugger

(self, width: int)

Source from the content-addressed store, hash-verified

73 return pygments.format(stream, self._formatter)
74
75 def make_arrow(self, width: int) -> str:
76 """generate the leading arrow in front of traceback or debugger"""
77 if width >= 2:
78 return (
79 self.symbols["arrow_body"] * (width - 2)
80 + self.symbols["arrow_head"]
81 + " "
82 )
83 elif width == 1:
84 return self.symbols["arrow_head"]
85 return ""
86
87
88generate_tokens = tokenize.generate_tokens

Callers 5

format_stack_entryMethod · 0.80
__line_contentMethod · 0.80
_format_traceback_linesFunction · 0.80
_format_traceback_linesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected