From f26e03a954b91eecc9dc29120e70cb39b42982c5 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 12 Dec 2010 13:43:02 -0500 Subject: [PATCH] dont need these imports --- test/lib/profiling.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.47.3