MCPcopy Create free account
hub / github.com/numpy/numpy / good

Method good

numpy/distutils/log.py:32–43  ·  view source on GitHub ↗

If we log WARN messages, log this message as a 'nice' anti-warn message.

(self, msg, *args)

Source from the content-addressed store, hash-verified

30 sys.stdout.flush()
31
32 def good(self, msg, *args):
33 """
34 If we log WARN messages, log this message as a 'nice' anti-warn
35 message.
36
37 """
38 if WARN >= self.threshold:
39 if args:
40 print(green_text(msg % _fix_args(args)))
41 else:
42 print(green_text(msg))
43 sys.stdout.flush()
44
45
46_global_log.__class__ = Log

Callers

nothing calls this directly

Calls 4

green_textFunction · 0.90
printFunction · 0.85
_fix_argsFunction · 0.85
flushMethod · 0.45

Tested by

no test coverage detected