MCPcopy
hub / github.com/astral-sh/python-build-standalone / log

Function log

cpython-windows/build.py:186–198  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

184
185
186def log(msg):
187 if isinstance(msg, bytes):
188 msg_str = msg.decode("utf-8", "replace")
189 msg_bytes = msg
190 else:
191 msg_str = msg
192 msg_bytes = msg.encode("utf-8", "replace")
193
194 print("%s> %s" % (LOG_PREFIX[0], msg_str))
195
196 if LOG_FH[0]:
197 LOG_FH[0].write(msg_bytes + b"\n")
198 LOG_FH[0].flush()
199
200
201def exec_and_log(args, cwd, env, exit_on_error=True):

Callers 6

exec_and_logFunction · 0.70
static_replace_in_fileFunction · 0.70
build_openssl_for_archFunction · 0.70
process_projectFunction · 0.70
build_cpythonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected