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

Function log

pythonbuild/logging.py:14–25  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

12
13
14def log(msg):
15 if isinstance(msg, bytes):
16 msg_str = msg.decode("utf-8", "replace")
17 msg_bytes = msg
18 else:
19 msg_str = msg
20 msg_bytes = msg.encode("utf-8", "replace")
21
22 print("%s> %s" % (LOG_PREFIX[0], msg_str))
23
24 if LOG_FH[0]:
25 LOG_FH[0].write(msg_bytes + b"\n")
26
27
28def log_raw(data):

Callers 13

exec_and_logFunction · 0.90
ensure_docker_imageFunction · 0.90
copy_file_to_containerFunction · 0.90
container_execFunction · 0.90
get_tools_archiveMethod · 0.90
get_fileMethod · 0.90
copy_fileMethod · 0.90
get_tools_archiveMethod · 0.90
get_fileMethod · 0.90
derive_setup_localFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected