From: Mike Bayer Date: Sun, 12 Dec 2010 18:43:02 +0000 (-0500) Subject: dont need these imports X-Git-Tag: rel_0_7b1~171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f26e03a954b91eecc9dc29120e70cb39b42982c5;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git dont need these imports --- diff --git a/test/lib/profiling.py b/test/lib/profiling.py index 6216e75b17..2b358d5001 100644 --- a/test/lib/profiling.py +++ b/test/lib/profiling.py @@ -203,7 +203,7 @@ def _profile(filename, fn, *args, **kw): return _profile_hotshot(filename, fn, *args, **kw) def _profile_cProfile(filename, fn, *args, **kw): - import cProfile, gc, pstats, time + import cProfile, pstats, time load_stats = lambda: pstats.Stats(filename) gc_collect() @@ -216,7 +216,7 @@ def _profile_cProfile(filename, fn, *args, **kw): return ended - began, load_stats, locals()['result'] def _profile_hotshot(filename, fn, *args, **kw): - import gc, hotshot, hotshot.stats, time + import hotshot, hotshot.stats, time load_stats = lambda: hotshot.stats.load(filename) gc_collect()