From 54471a94f7ac15e8aba50cb7f769718be9e5846f Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Thu, 11 Jan 2007 04:45:10 +0000 Subject: [PATCH] *** empty log message *** --- direct/src/showbase/PythonUtil.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/direct/src/showbase/PythonUtil.py b/direct/src/showbase/PythonUtil.py index 54a60851f2..6f76b42db2 100644 --- a/direct/src/showbase/PythonUtil.py +++ b/direct/src/showbase/PythonUtil.py @@ -2419,7 +2419,10 @@ class ClassTree: return self._getStr() -def report(types = [],notifyFunc = None): +def report(types = [], notifyFunc = None, overrideDev = False): + if overrideDev: + __dev__ = 1 + try: __dev__ except NameError: @@ -2450,7 +2453,8 @@ def report(types = [],notifyFunc = None): return f(*args,**kwargs) wrap.func_name = f.func_name - wrap.__doc__ = f.__doc__ + wrap.func_dict = f.func_dict + wrap.func_doc = f.func_doc return wrap else: def decorator(f):