Update of /cvsroot/ctypes/ctypes/sandbox/tools/codegen
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7436
Modified Files:
cparser.py
Log Message:
Print only when verbose is set.
Index: cparser.py
===================================================================
RCS file: /cvsroot/ctypes/ctypes/sandbox/tools/codegen/cparser.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** cparser.py 21 Jan 2005 11:57:59 -0000 1.7
--- cparser.py 21 Jan 2005 13:07:26 -0000 1.8
***************
*** 7,11 ****
subprocess = None
-
if sys.platform == "win32":
--- 7,10 ----
***************
*** 49,53 ****
if lines and self.options.flags:
args.extend(self.options.flags)
! print "run", args
if subprocess:
proc = subprocess.Popen(args,
--- 48,53 ----
if lines and self.options.flags:
args.extend(self.options.flags)
! if self.options.verbose:
! print >> sys.stderr, "running:", " ".join(args)
if subprocess:
proc = subprocess.Popen(args,
***************
*** 73,77 ****
args.extend(self.options.flags)
try:
! print "run", args
if subprocess:
retcode = subprocess.call(args)
--- 73,78 ----
args.extend(self.options.flags)
try:
! if self.options.verbose:
! print >> sys.stderr, "running:", " ".join(args)
if subprocess:
retcode = subprocess.call(args)
***************
*** 219,223 ****
The options object must have these attribuites:
verbose - integer
! flags - string
"""
self.options = options
--- 220,224 ----
The options object must have these attribuites:
verbose - integer
! flags - sequence of strings
"""
self.options = options
|