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

Method write_line

ci/util/tee.py:52–65  ·  view source on GitHub ↗

Write a line to both file and (optionally) console. Args: line: Line to write (newline will be appended)

(self, line: str)

Source from the content-addressed store, hash-verified

50 )
51
52 def write_line(self, line: str) -> None:
53 """
54 Write a line to both file and (optionally) console.
55
56 Args:
57 line: Line to write (newline will be appended)
58 """
59 with self._lock:
60 # Write to file
61 self._file_handle.write(line + "\n")
62
63 # Echo to console if enabled
64 if self._echo:
65 print(line)
66
67 def write_footer(self, exit_code: int) -> None:
68 """

Callers 2

producer_threadFunction · 0.95
compile_mesonFunction · 0.95

Calls 2

printFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected