Change boolean result from eval in report into ''

This commit is contained in:
Cédric Krier committed 2008-05-13 18:42:01 +02:00
1 parent 3ac9b800e3
commit 2c924912c6
1 file changed
+2
+2
View File
@@ -320,6 +320,8 @@ class Report(object):
localcontext=localcontext)
localcontext['time'] = time
res = eval(node.nodeValue, localcontext)
if isinstance(res, bool):
res = ''
if hasattr(res, '__str__'):
res = res.__str__()
if isinstance(res, basestring):