diff options
author | Greg Ward <gward@python.net> | 2000-08-04 01:31:13 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-08-04 01:31:13 (GMT) |
commit | f813e59d496b1048d68a759cd913818d9b61112c (patch) | |
tree | 0418789489dd76c8620004c192505a63df251cf7 /Lib/distutils | |
parent | 5db2c3ae24cb740575b527656785c85b58a272fe (diff) | |
download | cpython-f813e59d496b1048d68a759cd913818d9b61112c.zip cpython-f813e59d496b1048d68a759cd913818d9b61112c.tar.gz cpython-f813e59d496b1048d68a759cd913818d9b61112c.tar.bz2 |
Added 'debug_print()'.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/ccompiler.py | 5 |
1 files changed, 5 insertions, 0 deletions
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) |