Limited the length of the debug display of function return values.

- Legacy-Id: 6458
This commit is contained in:
Henrik Levkowetz 2013-10-17 11:24:21 +00:00
parent d2d532a015
commit 3bb7dc77c0

View file

@ -73,7 +73,7 @@ def trace(fn): # renamed from 'report' by henrik 16 Jun 2011
ret = fn(*params,**kwargs)
_report_indent[0] -= increment
if debug:
sys.stderr.write("%s %s [#%s] ==> %s\n" % (indent, fc, call, repr(ret)))
sys.stderr.write("%s %s [#%s] ==> %s\n" % (indent, fc, call, fix(repr(ret))))
return ret
wrap.callcount = 0