MCPcopy Create free account
hub / github.com/InternLM/InternBootcamp / write

Method write

internbootcamp/utils/tool_server/cli.py:74–78  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

72 self.file_obj = file_obj
73
74 def write(self, data):
75 if data:
76 data = sanitize_log_message(data)
77 self.file_obj.write(data)
78 self.file_obj.flush()
79
80 def flush(self):
81 self.file_obj.flush()

Callers

nothing calls this directly

Calls 3

sanitize_log_messageFunction · 0.70
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected