From 1f4bc1cc1ced9a59f15e962c109ba1b067b35ba5 Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Thu, 18 Feb 2010 21:33:13 +0000 Subject: [PATCH] in report print return val unless it's None --- direct/src/showbase/PythonUtil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/showbase/PythonUtil.py b/direct/src/showbase/PythonUtil.py index 0f80601ea7..d72b6d66a1 100644 --- a/direct/src/showbase/PythonUtil.py +++ b/direct/src/showbase/PythonUtil.py @@ -3343,7 +3343,7 @@ def report(types = [], prefix = '', xform = None, notifyFunc = None, dConfigPara rVal = f(*args,**kwargs) finally: __report_indent -= 1 - if rVal: + if rVal is not None: print indent(' -> '+repr(rVal)) pass pass