From c07409ef6eaa08c45dc9e9b4b8447545a3678162 Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Mon, 11 Jul 2011 13:25:06 -0700 Subject: [PATCH] Cleanup: no need to listify sum() input. --- rand_readwrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rand_readwrite.py b/rand_readwrite.py index df23755..0851948 100755 --- a/rand_readwrite.py +++ b/rand_readwrite.py @@ -90,7 +90,7 @@ def writer(seconds, bucket, name=None, queue=None, quantity=1, file_size=1, file queue.put(Result(name, type=Result.TYPE_WRITER, time=elapsed, - size=sum([(file.size/1024) for file in files]), + size=sum((file.size/1024) for file in files), ) )