# HG changeset patch # User David McClosky # Date 1181933176 0 # Node ID 10e4f755becacb62472a3f250059bfddb00dec1a # Parent f5786ee172195e3a8069a3f030c97d62165f5960 prof: move imports closer to when we need them (if we need them at all) I mean, I guess what I'm saying is that it's better, okay? Get off my back! diff -r f5786ee17219 -r 10e4f755beca light9/prof.py --- a/light9/prof.py Fri Jun 15 17:52:07 2007 +0000 +++ b/light9/prof.py Fri Jun 15 18:46:16 2007 +0000 @@ -1,4 +1,3 @@ -import hotshot, hotshot.stats import sys, traceback def run(main, profile=False): @@ -6,6 +5,7 @@ main() return + import hotshot, hotshot.stats p = hotshot.Profile("/tmp/pro") p.runcall(main) p.close()