MCPcopy Create free account
hub / github.com/SUSYUSTC/MathTranslate / write

Method write

gui/modified_logger.py:383–391  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

381 self.errors = ""
382
383 def write(self, s):
384 s = self.buffer + s
385 self.flush()
386 f = self.func
387 channel = self.channel
388 lines = s.split('\n')
389 for line in lines[:-1]:
390 f('%s: %s' % (channel, line))
391 self.buffer = lines[-1]
392
393 def flush(self):
394 return

Callers 6

_write_messageMethod · 0.80
filterMethod · 0.80
update_packageFunction · 0.80
zipdirFunction · 0.80
mainFunction · 0.80

Calls 1

flushMethod · 0.95

Tested by

no test coverage detected