Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f813e59

Browse files
committed
Added 'debug_print()'.
1 parent 5db2c3a commit f813e59

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/distutils/ccompiler.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,11 @@ def announce (self, msg, level=1):
783783
if self.verbose >= level:
784784
print msg
785785

786+
def debug_print (self, msg):
787+
from distutils.core import DEBUG
788+
if DEBUG:
789+
print msg
790+
786791
def warn (self, msg):
787792
sys.stderr.write ("warning: %s\n" % msg)
788793

0 commit comments

Comments
 (0)