MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / _color_exc

Method _color_exc

imperative/python/megengine/logger.py:34–36  ·  view source on GitHub ↗

r"""Sets the color of message as the execution type.

(self, msg)

Source from the content-addressed store, hash-verified

32 max_lines = 256
33
34 def _color_exc(self, msg):
35 r"""Sets the color of message as the execution type."""
36 return "\x1b[34m{}\x1b[0m".format(msg)
37
38 def _color_dbg(self, msg):
39 r"""Sets the color of message as the debugging type."""

Callers 1

formatMethod · 0.95

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected