From 7d8ec647e4e62066be8cac6f69ad6fb96ad5734a Mon Sep 17 00:00:00 2001 From: Greg Wiatroski Date: Thu, 28 Jun 2007 22:21:42 +0000 Subject: [PATCH] Clean up import syntax --- direct/src/showbase/PythonUtil.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/direct/src/showbase/PythonUtil.py b/direct/src/showbase/PythonUtil.py index 7ba6f10543..4917ef7133 100644 --- a/direct/src/showbase/PythonUtil.py +++ b/direct/src/showbase/PythonUtil.py @@ -43,8 +43,6 @@ import new import gc #if __debug__: import traceback -import profile as prof, pstats - from direct.directutil import Verify @@ -2989,6 +2987,7 @@ def quickProfile(name="unnamed"): s=globalClock.getRealTime()-st print "Function %s.%s took %s seconds"%(f.__module__, f.__name__,s) else: + import profile as prof, pstats #detailed profile, stored in base.stats under ( if(not hasattr(base,"stats")): base.stats={}