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

Method _color_err

imperative/python/megengine/logger.py:46–48  ·  view source on GitHub ↗

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

(self, msg)

Source from the content-addressed store, hash-verified

44 return "\x1b[1;31m{}\x1b[0m".format(msg)
45
46 def _color_err(self, msg):
47 r"""Sets the color of message as the error type."""
48 return "\x1b[1;4;31m{}\x1b[0m".format(msg)
49
50 def _color_omitted(self, msg):
51 r"""Sets the color of message as the omitted type."""

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected