[Happydoc-checkins] CVS: HappyDoc/happydoclib trace.py,1.4,1.5
Brought to you by:
doughellmann,
krlosaqp
From: Doug H. <dou...@us...> - 2002-05-12 20:19:04
|
Update of /cvsroot/happydoc/HappyDoc/happydoclib In directory usw-pr-cvs1:/tmp/cvs-serv8851/happydoclib Modified Files: trace.py Log Message: Print repr() of values instead of str(). Index: trace.py =================================================================== RCS file: /cvsroot/happydoc/HappyDoc/happydoclib/trace.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** trace.py 10 Feb 2002 13:02:25 -0000 1.4 --- trace.py 12 May 2002 20:19:01 -0000 1.5 *************** *** 141,145 **** params.sort() for name, value in params: ! self.output.write('\n%s\t%s=%s, ' % (self.getIndent(), name, value)) self.output.write(') {\n') self.pushLevel((className, functionName)) --- 141,145 ---- params.sort() for name, value in params: ! self.output.write('\n%s\t%s=%s, ' % (self.getIndent(), name, repr(value))) self.output.write(') {\n') self.pushLevel((className, functionName)) *************** *** 172,176 **** vars.sort() for name, value in vars: ! self.output.write('\n%s\t%s=%s' % (self.getIndent(), name, value)) self.output.write('\n') else: --- 172,176 ---- vars.sort() for name, value in vars: ! self.output.write('\n%s\t%s=%s' % (self.getIndent(), name, repr(value))) self.output.write('\n') else: *************** *** 184,188 **** variables.sort() for name, value in variables: ! self.write('%s=%s' % (name, value)) return --- 184,188 ---- variables.sort() for name, value in variables: ! self.write('%s=%s' % (name, repr(value))) return *************** *** 198,202 **** self.popLevel() self.output.write(self.getIndent()) ! self.output.write('} %s\n' % str(returnValue)) return returnValue --- 198,202 ---- self.popLevel() self.output.write(self.getIndent()) ! self.output.write('} %s\n' % repr(returnValue)) return returnValue *************** *** 229,243 **** Called by: () __main__::topLevel ( ! a=a, ! b=b, ) { Called by: (('__main__', 'topLevel'), ()) hi there secondary::secondLevel ( ! c=C, ! d=D, ) { inside second level Called by: (('secondary', 'secondLevel'), (('__main__', 'topLevel'), ())) } None ! } string returned """ actual_output = buffer.getvalue() --- 229,243 ---- Called by: () __main__::topLevel ( ! a='a', ! b='b', ) { Called by: (('__main__', 'topLevel'), ()) hi there secondary::secondLevel ( ! c='C', ! d='D', ) { inside second level Called by: (('secondary', 'secondLevel'), (('__main__', 'topLevel'), ())) } None ! } 'string returned' """ actual_output = buffer.getvalue() |