# HG changeset patch # User David McClosky # Date 2007-06-15 18:46:16 # 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 --git a/light9/prof.py b/light9/prof.py --- a/light9/prof.py +++ b/light9/prof.py @@ -1,4 +1,3 @@ -import hotshot, hotshot.stats import sys, traceback def run(main, profile=False): @@ -6,6 +5,7 @@ def run(main, profile=False): main() return + import hotshot, hotshot.stats p = hotshot.Profile("/tmp/pro") p.runcall(main) p.close()