From f813e59d496b1048d68a759cd913818d9b61112c Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Fri, 4 Aug 2000 01:31:13 +0000 Subject: Added 'debug_print()'. --- Lib/distutils/ccompiler.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py index 141af79..ce3f2be 100644 --- a/Lib/distutils/ccompiler.py +++ b/Lib/distutils/ccompiler.py @@ -783,6 +783,11 @@ class CCompiler: if self.verbose >= level: print msg + def debug_print (self, msg): + from distutils.core import DEBUG + if DEBUG: + print msg + def warn (self, msg): sys.stderr.write ("warning: %s\n" % msg) -- cgit v0.12