diff options
author | cookedm <cookedm@localhost> | 2007-12-26 07:03:34 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2007-12-26 07:03:34 +0000 |
commit | cba82ad3bc1a726402e4193aec8a49a85f9999f0 (patch) | |
tree | 15a3e246a29cd2c3b425e5a0df28f2d4cdecaffd /numpy | |
parent | cf2217e66326edd76d1ba4615842c0b42bb40a62 (diff) | |
download | numpy-cba82ad3bc1a726402e4193aec8a49a85f9999f0.tar.gz |
Add an 'if 0''d block of code to numpy.distutils.log to ignore some log messages. Especially useful to turn on if you're developing by using eggs.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/distutils/log.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/numpy/distutils/log.py b/numpy/distutils/log.py index 403df0ac1..5c68a81ad 100644 --- a/numpy/distutils/log.py +++ b/numpy/distutils/log.py @@ -18,9 +18,13 @@ class Log(old_Log): def _log(self, level, msg, args): if level >= self.threshold: if args: - print _global_color_map[level](msg % _fix_args(args)) - else: - print _global_color_map[level](msg) + msg = msg % _fix_args(args) + if 0: + if msg.startswith('copying ') and msg.find(' -> ') != -1: + return + if msg.startswith('byte-compiling '): + return + print _global_color_map[level](msg) sys.stdout.flush() def good(self, msg, *args): |