MCPcopy Create free account
hub / github.com/FastLED/FastLED / print_diff

Function print_diff

ci/run-clang-format.py:259–265  ·  view source on GitHub ↗
(diff_lines: list[str], use_color: bool)

Source from the content-addressed store, hash-verified

257
258
259def print_diff(diff_lines: list[str], use_color: bool) -> None:
260 if use_color:
261 diff_lines = list(colorize(diff_lines))
262 if sys.version_info[0] < 3:
263 sys.stdout.writelines((line.encode("utf-8") for line in diff_lines))
264 else:
265 sys.stdout.writelines(diff_lines)
266
267
268def print_trouble(prog: str, message: str, use_colors: bool) -> None:

Callers 1

mainFunction · 0.85

Calls 2

listClass · 0.85
colorizeFunction · 0.85

Tested by

no test coverage detected