]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
dont need these imports
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 12 Dec 2010 18:43:02 +0000 (13:43 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 12 Dec 2010 18:43:02 +0000 (13:43 -0500)
test/lib/profiling.py

index 6216e75b179d857389d0d6dd65addb73130d6bb1..2b358d500116877a6a2963dd5f87d9de69fc693c 100644 (file)
@@ -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()