MCPcopy Index your code
hub / github.com/python/cpython / _colorize_code

Method _colorize_code

Lib/pdb.py:1103–1108  ·  view source on GitHub ↗
(self, code)

Source from the content-addressed store, hash-verified

1101 return False
1102
1103 def _colorize_code(self, code):
1104 if self.colorize and _pyrepl:
1105 colors = list(_pyrepl.utils.gen_colors(code))
1106 chars, _ = _pyrepl.utils.disp_str(code, colors=colors, force_color=True)
1107 code = "".join(chars)
1108 return code
1109
1110 # interface abstraction functions
1111

Callers 2

_print_linesMethod · 0.95
print_stack_entryMethod · 0.95

Calls 2

listClass · 0.85
joinMethod · 0.45

Tested by

no test coverage detected