mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Clean up import syntax
This commit is contained in:
parent
d668da224d
commit
7d8ec647e4
@ -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={}
|
||||
|
Loading…
x
Reference in New Issue
Block a user