MCPcopy
hub / github.com/eldraco/domain_analyzer / emit

Method emit

ansistrm.py:47–60  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

45 return isatty and isatty()
46
47 def emit(self, record):
48 try:
49 message = self.format(record)
50 stream = self.stream
51 if not self.is_tty:
52 stream.write(message)
53 else:
54 self.output_colorized(message)
55 stream.write(getattr(self, 'terminator', '\n'))
56 self.flush()
57 except (KeyboardInterrupt, SystemExit):
58 raise
59 except:
60 self.handleError(record)
61
62 if os.name != 'nt':
63 def output_colorized(self, message):

Callers

nothing calls this directly

Calls 2

formatMethod · 0.95
output_colorizedMethod · 0.95

Tested by

no test coverage detected