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

Method _log

numpy/distutils/log.py:20–30  ·  view source on GitHub ↗
(self, level, msg, args)

Source from the content-addressed store, hash-verified

18
19class Log(old_Log):
20 def _log(self, level, msg, args):
21 if level >= self.threshold:
22 if args:
23 msg = msg % _fix_args(args)
24 if 0:
25 if msg.startswith('copying ') and msg.find(' -> ') != -1:
26 return
27 if msg.startswith('byte-compiling '):
28 return
29 print(_global_color_map[level](msg))
30 sys.stdout.flush()
31
32 def good(self, msg, *args):
33 """

Callers

nothing calls this directly

Calls 5

_fix_argsFunction · 0.85
printFunction · 0.85
startswithMethod · 0.80
findMethod · 0.80
flushMethod · 0.45

Tested by

no test coverage detected